Cpufreq: interactive: Check actual freq before setting new freq
authorPuneet Saxena <puneets@nvidia.com>
Mon, 15 Jul 2013 09:27:12 +0000 (14:27 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Fri, 26 Jul 2013 20:50:25 +0000 (13:50 -0700)
commitb89c138498dfa8db157c9b23172f9da98ea9e583
tree860d69e941a02ae58cc989bd25f52af6172042bf
parentba483d38dd783c45118cf66dcd9a23008d68571c
Cpufreq: interactive: Check actual freq before setting new freq

In case Actual freq is not updated till next timer interrupt
and new target freq comes same as actual freq.
Don't go for setting same frequency again.

Bug 1316765

Change-Id: If81786911fd85adb8469b49c59f2ab70ae12f96a
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/251585
Reviewed-by: Elaine Tam <etam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Tested-by: Elaine Tam <etam@nvidia.com>
drivers/cpufreq/cpufreq_interactive.c