Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Boris Ostrovsky and committed by
Len Brown
02401c06 1a022e3f

+2 -2
+1 -1
drivers/cpuidle/governors/menu.c
··· 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;
+1 -1
include/linux/cpuidle.h
··· 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