aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2022-04-15 21:20:04 +0200
committerThomas Gleixner <[email protected]>2022-04-27 20:22:19 +0200
commitf3eca381bd49d708073ba1a9af4fa6ea5d5810a6 (patch)
treef5ab8f6ff5babeaa6edb0b6f9dd74d41fe21fa33 /lib/mpi/mpi-sub-ui.c
parent7d84c1ebf9ddafca27b481e6da7d24a023dacaa2 (diff)
x86/aperfmperf: Replace arch_freq_get_on_cpu()
Reading the current CPU frequency from /sys/..../scaling_cur_freq involves in the worst case two IPIs due to the ad hoc sampling. The frequency invariance infrastructure provides the APERF/MPERF samples already. Utilize them and consolidate this with the /proc/cpuinfo readout. The sample is considered valid for 20ms. So for idle or isolated NOHZ full CPUs the function returns 0, which is matching the previous behaviour. The resulting text size vs. the original APERF/MPERF plus the separate frequency invariance code: text: 2411 -> 723 init.text: 0 -> 767 Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Eric Dumazet <[email protected]> Reviewed-by: Rafael J. Wysocki <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Paul E. McKenney <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions