diff options
Diffstat (limited to 'arch/powerpc/kernel/smp.c')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 71e186d5f331..8b2d2dc8ef10 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -243,7 +243,7 @@ void smp_muxed_ipi_message_pass(int cpu, int msg) | |||
243 | 243 | ||
244 | irqreturn_t smp_ipi_demux(void) | 244 | irqreturn_t smp_ipi_demux(void) |
245 | { | 245 | { |
246 | struct cpu_messages *info = &__get_cpu_var(ipi_message); | 246 | struct cpu_messages *info = this_cpu_ptr(&ipi_message); |
247 | unsigned int all; | 247 | unsigned int all; |
248 | 248 | ||
249 | mb(); /* order any irq clear */ | 249 | mb(); /* order any irq clear */ |
@@ -442,9 +442,9 @@ void generic_mach_cpu_die(void) | |||
442 | idle_task_exit(); | 442 | idle_task_exit(); |
443 | cpu = smp_processor_id(); | 443 | cpu = smp_processor_id(); |
444 | printk(KERN_DEBUG "CPU%d offline\n", cpu); | 444 | printk(KERN_DEBUG "CPU%d offline\n", cpu); |
445 | __get_cpu_var(cpu_state) = CPU_DEAD; | 445 | __this_cpu_write(cpu_state, CPU_DEAD); |
446 | smp_wmb(); | 446 | smp_wmb(); |
447 | while (__get_cpu_var(cpu_state) != CPU_UP_PREPARE) | 447 | while (__this_cpu_read(cpu_state) != CPU_UP_PREPARE) |
448 | cpu_relax(); | 448 | cpu_relax(); |
449 | } | 449 | } |
450 | 450 | ||