summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cpufreq_governor.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2017-08-14 12:20:16 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-08-18 02:35:19 +0300
commitc49cbc19b31e069cb344921c7286d7549767d10e (patch)
tree17619f692f3bea27eabe3155fefe92d9ed9e9383 /drivers/cpufreq/cpufreq_governor.c
parente2cabe48c20efb174ce0c01190f8b9c5f3ea1d13 (diff)
downloadlinux-c49cbc19b31e069cb344921c7286d7549767d10e.tar.xz
cpufreq: schedutil: Always process remote callback with slow switching
The frequency update from the utilization update handlers can be divided into two parts: (A) Finding the next frequency (B) Updating the frequency While any CPU can do (A), (B) can be restricted to a group of CPUs only, depending on the current platform. For platforms where fast cpufreq switching is possible, both (A) and (B) are always done from the same CPU and that CPU should be capable of changing the frequency of the target CPU. But for platforms where fast cpufreq switching isn't possible, after doing (A) we wake up a kthread which will eventually do (B). This kthread is already bound to the right set of CPUs, i.e. only those which can change the frequency of CPUs of a cpufreq policy. And so any CPU can actually do (A) in this case, as the frequency is updated from the right set of CPUs only. Check cpufreq_can_do_remote_dvfs() only for the fast switching case. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.c')
0 files changed, 0 insertions, 0 deletions