x86/aperfmperf: Dont wake idle CPUs in arch_freq_get_on_cpu()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Apr 2022 19:19:50 +0000 (21:19 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 27 Apr 2022 13:51:08 +0000 (15:51 +0200)
commit6d108c96bf23598cc3b4f91d60e9b7694abcd2a7
tree540dfbe0ed9a54028ec0aadae727686775b1f35d
parentdbb5ab6d2c0a7397d77c9f60fe23844d4fe4e634
x86/aperfmperf: Dont wake idle CPUs in arch_freq_get_on_cpu()

aperfmperf_get_khz() already excludes idle CPUs from APERF/MPERF sampling
and that's a reasonable decision. There is no point in sending up to two
IPIs to an idle CPU just because someone reads a sysfs file.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Link: https://lore.kernel.org/r/20220415161206.419880163@linutronix.de
arch/x86/kernel/cpu/aperfmperf.c