• Paul E. McKenney's avatar
    x86/cpu: Avoid cpuinfo-induced IPIing of idle CPUs · 3fcd6a23
    Paul E. McKenney authored
    Currently, accessing /proc/cpuinfo sends IPIs to idle CPUs in order to
    learn their clock frequency.  Which is a bit strange, given that waking
    them from idle likely significantly changes their clock frequency.
    This commit therefore avoids sending /proc/cpuinfo-induced IPIs to
    idle CPUs.
    
    [ paulmck: Also check for idle in arch_freq_prepare_all(). ]
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: <x86@kernel.org>
    3fcd6a23
aperfmperf.c 3.45 KB