cpuidle: governor: menu: Initialize power usage to max
authorPrashant Gaikwad <pgaikwad@nvidia.com>
Mon, 23 Apr 2012 12:41:58 +0000 (17:41 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Tue, 24 Apr 2012 08:37:00 +0000 (01:37 -0700)
commit1c15b86a58f6ebaeafe0d9f6dc4a30a673caf3b0
treed981d207d0a6b4baa9e08c92c8c8415a2766eccc
parent25e382709afa7365ce7f544110b23a987716c5c3
cpuidle: governor: menu: Initialize power usage to max

power_usage variable data type changed from unsigned int
to int. -1 for unsigned int is max whereas for int it is
less than 0. s->power_usage < power_usage always fails since
power usage specified for Tegra CPU states is greater
or equal to 0.

Bug 971668

Change-Id: If2197f1c973e5774c3c46e2c1ac6ec83051d4e19
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/98204
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
drivers/cpuidle/governors/menu.c