aboutsummaryrefslogtreecommitdiff
path: root/fs/efs
diff options
context:
space:
mode:
authorRafael J. Wysocki2021-01-08 19:05:59 +0100
committerPeter Zijlstra2021-01-19 17:04:03 +0100
commit9c7d9017a49fb8516c13b7bff59b7da2abed23e1 (patch)
tree04499ef7cd30b33add8439af28fd9ab5efb53fff /fs/efs
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837 (diff)
x86: PM: Register syscore_ops for scale invariance
On x86 scale invariace tends to be disabled during resume from suspend-to-RAM, because the MPERF or APERF MSR values are not as expected then due to updates taking place after the platform firmware has been invoked to complete the suspend transition. That, of course, is not desirable, especially if the schedutil scaling governor is in use, because the lack of scale invariance causes it to be less reliable. To counter that effect, modify init_freq_invariance() to register a syscore_ops object for scale invariance with the ->resume callback pointing to init_counter_refs() which will run on the CPU starting the resume transition (the other CPUs will be taken care of the "online" operations taking place later). Fixes: e2b0d619b400 ("x86, sched: check for counters overflow in frequency invariant accounting") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Giovanni Gherdovich <ggherdovich@suse.cz> Link: https://lkml.kernel.org/r/1803209.Mvru99baaF@kreacher
Diffstat (limited to 'fs/efs')
0 files changed, 0 insertions, 0 deletions