Merge branch 'for-2.6.29' of git://git.kernel.dk/linux-2.6-block
[firefly-linux-kernel-4.4.55.git] / kernel / hrtimer.c
index b09c7a27631de64956d51bb213e6283e5ee36631..bda9cb92427673a4c2e47676596e854d57d7dca3 100644 (file)
@@ -1571,7 +1571,7 @@ static void tickle_timers(void *arg)
 static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
                                        unsigned long action, void *hcpu)
 {
-       int dcpu = -1, scpu = (long)hcpu;
+       int scpu = (long)hcpu;
 
        switch (action) {
 
@@ -1583,16 +1583,14 @@ static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
 #ifdef CONFIG_HOTPLUG_CPU
        case CPU_DEAD:
        case CPU_DEAD_FROZEN:
+       {
+               int dcpu;
+
                clockevents_notify(CLOCK_EVT_NOTIFY_CPU_DEAD, &scpu);
                dcpu = migrate_hrtimers(scpu);
-               break;
-
-       case CPU_POST_DEAD:
-               if (dcpu == -1)
-                       break;
-
                smp_call_function_single(dcpu, tickle_timers, NULL, 0);
                break;
+       }
 #endif
 
        default: