x86: Use this_cpu_ops to optimize code
authorTejun Heo <tj@kernel.org>
Sat, 18 Dec 2010 15:28:55 +0000 (16:28 +0100)
committerTejun Heo <tj@kernel.org>
Thu, 30 Dec 2010 11:20:28 +0000 (12:20 +0100)
commit0a3aee0da4402aa19b66e458038533c896fb80c6
treeb2c29c0b18218b76cc0e7ed9866a2c12d1e22e3a
parent7c83912062c801738d7d19acaf8f7fec25ea663c
x86: Use this_cpu_ops to optimize code

Go through x86 code and replace __get_cpu_var and get_cpu_var
instances that refer to a scalar and are not used for address
determinations.

Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
16 files changed:
arch/x86/include/asm/debugreg.h
arch/x86/kernel/apic/io_apic.c
arch/x86/kernel/apic/nmi.c
arch/x86/kernel/apic/x2apic_uv_x.c
arch/x86/kernel/cpu/cpufreq/powernow-k8.c
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/ftrace.c
arch/x86/kernel/hw_breakpoint.c
arch/x86/kernel/irq.c
arch/x86/kernel/irq_32.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/tsc.c
arch/x86/kvm/x86.c
arch/x86/oprofile/nmi_int.c