]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: schedutil: move cached_raw_freq to struct sugov_policy
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 2 Mar 2017 08:33:20 +0000 (14:03 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 5 Mar 2017 22:58:48 +0000 (23:58 +0100)
commit1a1443f0a9f7b73089292c1b7ca94c6792a7f24f
tree4d044ebcfc34c31b7a0ff2e0c5ca49b7824c2e7b
parent8a17c7afe9fb246fbdf434a8c4a84cdc5bada8cb
cpufreq: schedutil: move cached_raw_freq to struct sugov_policy

cached_raw_freq applies to the entire cpufreq policy and not individual
CPUs. Apart from wasting per-cpu memory, it is actually wrong to keep it
in struct sugov_cpu as we may end up comparing next_freq with a stale
cached_raw_freq of a random CPU.

Move cached_raw_freq to struct sugov_policy.

Fixes: c1b7a095050a (cpufreq: schedutil: map raw required frequency to driver frequency)
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