cpufreq: interactive: don't skip waking up speedchange_task if target_freq > policy...
authorMinsung Kim <ms925.kim@samsung.com>
Sat, 29 Nov 2014 12:43:53 +0000 (21:43 +0900)
committerRuchi Kandoi <kandoiruchi@google.com>
Thu, 4 Dec 2014 18:26:53 +0000 (18:26 +0000)
commit4b77eee35fd243fff8df79dc80b905e91fd0fa42
tree5b123dd425f4521d665dfff466acda342ae51a32
parent4fd02636be28ce91ae9b9da37014e74285f4cd2e
cpufreq: interactive: don't skip waking up speedchange_task if target_freq > policy->cur

When __cpufreq_driver_target() in speedchange_task failed for some reason, the
policy->cur could be lower than the target_freq. The governor misses to change
the target_freq if the target_freq is equal to the next_freq at the next sample
time.

Added a check to prevent the CPU to stay at the speed that is lower than the
target_freq for long duration.

Change-Id: Ibfdcd193b8280390b8f8374a63218aa31267f310
Signed-off-by: Minsung Kim <ms925.kim@samsung.com>
drivers/cpufreq/cpufreq_interactive.c