diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-12-11 11:30:50 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-12-12 17:56:08 +0100 |
commit | d4d8140176972fdb3f00bffc88e63af781de8d67 (patch) | |
tree | 3343f9deea57e137b2ec984f1734f376a9d834b2 /drivers/cpuidle/cpuidle.c | |
parent | cpuidle: Fix cpuidle_driver_state_disabled() (diff) | |
download | linux-d4d8140176972fdb3f00bffc88e63af781de8d67.tar.xz linux-d4d8140176972fdb3f00bffc88e63af781de8d67.zip |
cpuidle: Drop unnecessary type cast in cpuidle_poll_time()
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 rid of the unnecessary type cast.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 15877b431143..33d19c8eb027 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -381,7 +381,7 @@ u64 cpuidle_poll_time(struct cpuidle_driver *drv, 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; } |