Merge branch 'tip/tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / arch / sh / kernel / smp.c
index 983e079..002cc61 100644 (file)
@@ -69,6 +69,7 @@ asmlinkage void __cpuinit start_secondary(void)
        unsigned int cpu;
        struct mm_struct *mm = &init_mm;
 
+       enable_mmu();
        atomic_inc(&mm->mm_count);
        atomic_inc(&mm->mm_users);
        current->active_mm = mm;
@@ -161,15 +162,6 @@ void smp_send_reschedule(int cpu)
        plat_send_ipi(cpu, SMP_MSG_RESCHEDULE);
 }
 
-static void stop_this_cpu(void *unused)
-{
-       cpu_clear(smp_processor_id(), cpu_online_map);
-       local_irq_disable();
-
-       for (;;)
-               cpu_relax();
-}
-
 void smp_send_stop(void)
 {
        smp_call_function(stop_this_cpu, 0, 0);