arch: Cleanup enable/disable_hlt
[firefly-linux-kernel-4.4.55.git] / arch / mn10300 / kernel / smp.c
index 5d7e152a23b7d2b03921aca402d4538b55672144..eaef5ad8e0ec061b090055c9da0963dfe67b274e 100644 (file)
@@ -935,8 +935,6 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle)
        int timeout;
 
 #ifdef CONFIG_HOTPLUG_CPU
-       if (num_online_cpus() == 1)
-               disable_hlt();
        if (sleep_mode[cpu])
                run_wakeup_cpu(cpu);
 #endif /* CONFIG_HOTPLUG_CPU */
@@ -1003,9 +1001,6 @@ int __cpu_disable(void)
 void __cpu_die(unsigned int cpu)
 {
        run_sleep_cpu(cpu);
-
-       if (num_online_cpus() == 1)
-               enable_hlt();
 }
 
 #ifdef CONFIG_MN10300_CACHE_ENABLED