cpufreq: schedutil: Fix per-CPU structure initialization in sugov_start()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 19 Mar 2017 13:30:02 +0000 (14:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 13:06:05 +0000 (15:06 +0200)
commita8fc3159ee2c5aa0f557bc4581f8a32461f74407
tree4fe834e5315766967d545791ff4ad23919c0244f
parentafe8d4a51c763b9da32c993295af71252bbb7a2c
cpufreq: schedutil: Fix per-CPU structure initialization in sugov_start()

commit 4296f23ed49a15d36949458adcc66ff993dee2a8 upstream.

sugov_start() only initializes struct sugov_cpu per-CPU structures
for shared policies, but it should do that for single-CPU policies too.

That in particular makes the IO-wait boost mechanism work in the
cases when cpufreq policies correspond to individual CPUs.

Fixes: 21ca6d2c52f8 (cpufreq: schedutil: Add iowait boosting)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/sched/cpufreq_schedutil.c