[PATCH v2 0/2] Reduce IPI calls for remote msr access

From: Jacob Pan
Date: Tue Jan 12 2016 - 20:13:32 EST


IPI calls to access MSRs on remote CPUs are expensive. So add a lib call
for read/modify/write access and use it in Intel RAPL driver.

Changes since v1:
(based on feedback from Thomas Gleixner)
- remove duplicated !CONFIG_SMP code
- rename variables
- added a check for local CPU before searching for active CPU oni
the package

Jacob Pan (2):
x86/msr: add on cpu read/modify/write function
powercap/rapl: reduce ipi calls

arch/x86/include/asm/msr.h | 13 ++++++++
arch/x86/lib/msr-smp.c | 34 +++++++++++++++++++
arch/x86/lib/msr.c | 18 ++++++++++
drivers/powercap/intel_rapl.c | 77 +++++++++++++++++++++++--------------------
4 files changed, 107 insertions(+), 35 deletions(-)

--
1.9.1