]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: conservative: Fix the logic in frequency decrease checking
authorStratos Karafotis <stratosk@semaphore.gr>
Tue, 5 Mar 2013 22:06:40 +0000 (22:06 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 31 Mar 2013 23:11:35 +0000 (01:11 +0200)
commit62ca28bcd967157980335af8f5a421b01551669b
tree7d1e5bc92a1722752daed3762ef83130c56a65c2
parentc32787c8a654caa1766c1dc84bde8aa88adbcd17
cpufreq: conservative: Fix the logic in frequency decrease checking

When we evaluate the CPU load for frequency decrease we have to compare
the load against down_threshold. There is no need to subtract 10 points
from down_threshold.

Instead, we have to use the default down_threshold or user's selection
unmodified.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_conservative.c