Commit 02401c06b7f6bec65f314e3cec7894502c973501

Authored by Boris Ostrovsky
Committed by Len Brown
1 parent 1a022e3f1b

cpuidle: power_usage should be declared signed integer

power_usage is always assigned a negative value and should be declared
a signed integer

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
Signed-off-by: Len Brown <len.brown@intel.com>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/cpuidle/governors/menu.c
... ... @@ -236,7 +236,7 @@
236 236 {
237 237 struct menu_device *data = &__get_cpu_var(menu_devices);
238 238 int latency_req = pm_qos_request(PM_QOS_CPU_DMA_LATENCY);
239   - unsigned int power_usage = -1;
  239 + int power_usage = -1;
240 240 int i;
241 241 int multiplier;
242 242 struct timespec t;
include/linux/cpuidle.h
... ... @@ -44,7 +44,7 @@
44 44  
45 45 unsigned int flags;
46 46 unsigned int exit_latency; /* in US */
47   - unsigned int power_usage; /* in mW */
  47 + int power_usage; /* in mW */
48 48 unsigned int target_residency; /* in US */
49 49 unsigned int disable;
50 50