aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorYair Podemsky <[email protected]>2023-01-10 18:02:06 +0200
committerIngo Molnar <[email protected]>2023-01-16 10:19:15 +0100
commit5f5cc9ed992cbab6361f198966f0edba5fc52688 (patch)
tree205ad885931ace7caedaeee8368abd4393f909c8 /include/linux/overflow.h
parent5657c116783545fb49cd7004994c187128552b12 (diff)
x86/aperfmperf: Erase stale arch_freq_scale values when disabling frequency invariance readings
Once disable_freq_invariance_work is called the scale_freq_tick function will not compute or update the arch_freq_scale values. However the scheduler will still read these values and use them. The result is that the scheduler might perform unfair decisions based on stale values. This patch adds the step of setting the arch_freq_scale values for all cpus to the default (max) value SCHED_CAPACITY_SCALE, Once all cpus have the same arch_freq_scale value the scaling is meaningless. Signed-off-by: Yair Podemsky <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions