aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-12-18 10:28:55 -0500
committerTejun Heo <tj@kernel.org>2010-12-30 06:20:28 -0500
commit0a3aee0da4402aa19b66e458038533c896fb80c6 (patch)
treeb2c29c0b18218b76cc0e7ed9866a2c12d1e22e3a /arch/x86/kernel/smpboot.c
parent7c83912062c801738d7d19acaf8f7fec25ea663c (diff)
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>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r--arch/x86/kernel/smpboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 083e99d1b7df..ff4e5a113a5b 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1377,7 +1377,7 @@ void play_dead_common(void)
1377 1377
1378 mb(); 1378 mb();
1379 /* Ack it */ 1379 /* Ack it */
1380 __get_cpu_var(cpu_state) = CPU_DEAD; 1380 __this_cpu_write(cpu_state, CPU_DEAD);
1381 1381
1382 /* 1382 /*
1383 * With physical CPU hotplug, we should halt the cpu 1383 * With physical CPU hotplug, we should halt the cpu