]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: ondemand: Don't update sample_type if we don't evaluate load again
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 27 Feb 2013 05:36:36 +0000 (11:06 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 31 Mar 2013 23:11:34 +0000 (01:11 +0200)
commit962e709a76e2629d3388af69a6aa1f980968a275
tree224097c0f4d8407e149e813587a0266b32acdad9
parenta921073b816bc40d9acabefc2afdce16eca4fb1f
cpufreq: ondemand: Don't update sample_type if we don't evaluate load again

Because we have per cpu timer now, we check if we need to evaluate load again or
not (In case it is recently evaluated). Here the 2nd cpu which got timer
interrupt updates core_dbs_info->sample_type irrespective of load evaluation is
required or not. Which is wrong as the first cpu is dependent on this variable
set to an older value.

Moreover it would be best in this case to schedule 2nd cpu's timer to
sampling_rate instead of freq_lo or hi as that must be managed by the other cpu.
In case the other cpu idles in between then also we wouldn't loose much power.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_ondemand.c