cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 10 Aug 2017 04:20:55 +0000 (09:50 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2017 23:35:18 +0000 (01:35 +0200)
commite2cabe48c20efb174ce0c01190f8b9c5f3ea1d13
tree00782649545658d4f962eb26207ddaa5cd274abe
parent209887e6b974c22328487b55d0f390522b014b03
cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily

Utilization update callbacks are now processed remotely, even on the
CPUs that don't share cpufreq policy with the target CPU (if
dvfs_possible_from_any_cpu flag is set).

But in non-fast switch paths, the frequency is changed only from one of
policy->related_cpus. This happens because the kthread which does the
actual update is bound to a subset of CPUs (i.e. related_cpus).

Allow frequency to be remotely updated as well (i.e. call
__cpufreq_driver_target()) if dvfs_possible_from_any_cpu flag is set.

Reported-by: Pavan Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/sched/cpufreq_schedutil.c