diff options
| author | Chris Redpath <chris.redpath@arm.com> | 2017-05-25 15:12:38 +0100 |
|---|---|---|
| committer | Andres Oportus <andresoportus@google.com> | 2017-07-18 18:18:20 +0000 |
| commit | 0646dd35928e446d8d2f8075a349b3abb521fa06 (patch) | |
| tree | e57d86e213bcf572d85c0fb44ec4ccba0df5f81c /net/core/dev.c | |
| parent | 69fc75780d1521448ba5288545a5d522a43ad062 (diff) | |
UPSTREAM: 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: 5cbea46984d6 (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>
(cherry-picked from 6c4f0fa643cb9e775dcc976e3db00d649468ff1d)
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Change-Id: Ie91420f710819b383947f9031da9be1f3bb7f636
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions
