linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Zhang, Rui" <rui.zhang@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Linux PM <linux-pm@vger.kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: RE: [PATCH] cpuidle: Drop unnecessary type cast in cpuidle_poll_time()
Date: Wed, 11 Dec 2019 10:33:07 +0000	[thread overview]
Message-ID: <744357E9AAD1214791ACBA4B0B90926377677DF1@SHSMSX108.ccr.corp.intel.com> (raw)
In-Reply-To: <9680649.eAqxiQ8Vpk@kreacher>


> -----Original Message-----
> From: linux-pm-owner@vger.kernel.org [mailto:linux-pm-
> owner@vger.kernel.org] On Behalf Of Rafael J. Wysocki
> Sent: Wednesday, December 11, 2019 6:31 PM
> To: Linux PM <linux-pm@vger.kernel.org>
> Cc: LKML <linux-kernel@vger.kernel.org>; Daniel Lezcano
> <daniel.lezcano@linaro.org>
> Subject: [PATCH] cpuidle: Drop unnecessary type cast in cpuidle_poll_time()
> 
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> 
> The data type of the target_residency_ns field in struct cpuidle_state is u64,
> so it does not need to be cast into u64.
> 
> Get read of the unnecessary type cast.

s/read/rid

thanks,
rui
> 
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
> 
> On top of the linux-next branch of linux-pm.git from today.
> 
> ---
>  drivers/cpuidle/cpuidle.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: linux-pm/drivers/cpuidle/cpuidle.c
> ==============================================================
> =====
> --- linux-pm.orig/drivers/cpuidle/cpuidle.c
> +++ linux-pm/drivers/cpuidle/cpuidle.c
> @@ -381,7 +381,7 @@ u64 cpuidle_poll_time(struct cpuidle_dri
>  		if (dev->states_usage[i].disable)
>  			continue;
> 
> -		limit_ns = (u64)drv->states[i].target_residency_ns;
> +		limit_ns = drv->states[i].target_residency_ns;
>  		break;
>  	}
> 
> 
> 


  reply	other threads:[~2019-12-11 10:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-11 10:30 [PATCH] cpuidle: Drop unnecessary type cast in cpuidle_poll_time() Rafael J. Wysocki
2019-12-11 10:33 ` Zhang, Rui [this message]
2019-12-11 10:35   ` Rafael J. Wysocki
2019-12-11 15:32 ` Daniel Lezcano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=744357E9AAD1214791ACBA4B0B90926377677DF1@SHSMSX108.ccr.corp.intel.com \
    --to=rui.zhang@intel.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).