x86: Replace uses of current_cpu_data with this_cpu ops
authorTejun Heo <tj@kernel.org>
Sat, 18 Dec 2010 15:30:05 +0000 (16:30 +0100)
committerTejun Heo <tj@kernel.org>
Thu, 30 Dec 2010 11:22:03 +0000 (12:22 +0100)
commit7b543a5334ff4ea2e3ad3b777fc23cdb8072a988
tree8fbdf5275411190f78f3bdee3c40e87285bf8e30
parent0a3aee0da4402aa19b66e458038533c896fb80c6
x86: Replace uses of current_cpu_data with this_cpu ops

Replace all uses of current_cpu_data with this_cpu operations on the
per cpu structure cpu_info.  The scala accesses are replaced with the
matching this_cpu ops which results in smaller and more efficient
code.

In the long run, it might be a good idea to remove cpu_data() macro
too and use per_cpu macro directly.

tj: updated description

Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/include/asm/processor.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/cpufreq/powernow-k8.c
arch/x86/kernel/cpu/intel_cacheinfo.c
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/mcheck/mce_intel.c
arch/x86/kernel/process.c
arch/x86/kernel/smpboot.c
arch/x86/oprofile/op_model_ppro.c
drivers/staging/lirc/lirc_serial.c