Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02401c06 authored by Boris Ostrovsky's avatar Boris Ostrovsky Committed by Len Brown
Browse files

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: default avatarBoris Ostrovsky <boris.ostrovsky@amd.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 1a022e3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -236,7 +236,7 @@ static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev)
{
	struct menu_device *data = &__get_cpu_var(menu_devices);
	int latency_req = pm_qos_request(PM_QOS_CPU_DMA_LATENCY);
	unsigned int power_usage = -1;
	int power_usage = -1;
	int i;
	int multiplier;
	struct timespec t;
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ struct cpuidle_state {

	unsigned int	flags;
	unsigned int	exit_latency; /* in US */
	unsigned int	power_usage; /* in mW */
	int		power_usage; /* in mW */
	unsigned int	target_residency; /* in US */
	unsigned int    disable;