x86: Use this_cpu_ops to optimize code
[pandora-kernel.git] / arch / x86 / kernel / smpboot.c
index 6c7faec..ff4e5a1 100644 (file)
@@ -1373,12 +1373,11 @@ void play_dead_common(void)
 {
        idle_task_exit();
        reset_lazy_tlbstate();
-       irq_ctx_exit(raw_smp_processor_id());
        c1e_remove_cpu(raw_smp_processor_id());
 
        mb();
        /* Ack it */
-       __get_cpu_var(cpu_state) = CPU_DEAD;
+       __this_cpu_write(cpu_state, CPU_DEAD);
 
        /*
         * With physical CPU hotplug, we should halt the cpu