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)
committerDanny Wood <danwood76@gmail.com>
Sun, 31 Mar 2019 09:24:16 +0000 (10:24 +0100)
commit088eb7e92b3576a27fff48b7726b36736233b52e
treeb859b6743712f15e56a593ee8305810d739a00bf
parent44d693204970a86d48ba27c91d1378db14d89ce7
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