]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cpufreq: acpi-cpufreq: drop rdmsr_on_cpus() usage
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 28 Nov 2016 09:52:03 +0000 (10:52 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Nov 2016 13:31:06 +0000 (14:31 +0100)
commita3605c46e0c05b117e5710d72128f74b779c2e76
tree8602fa47f02a004935f39ac4bfa692c6adc1094c
parent4d66ddf28dd6e0582eeca0266651d1f5f5db431e
cpufreq: acpi-cpufreq: drop rdmsr_on_cpus() usage

The online / pre_down callback is invoked on the target CPU since commit
1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu") which means
for the hotplug callback we can use rmdsrl() instead of rdmsr_on_cpus().

This leaves us with set_boost() as the only user which still needs to
read/write the MSR on different CPUs. There is no point in doing that
update on all cpus with the read modify write magic via per cpu data. We
simply can issue a function call on all online CPUs which also means that we
need half that many IPIs.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/acpi-cpufreq.c