Conflicts:
kernel/time/tick-common.c
return ret;
}
- int cpu = first_cpu(cpu_online_map);
+/*
+ * Transfer the do_timer job away from a dying cpu.
+ *
+ * Called with interrupts disabled.
+ */
+static void tick_handover_do_timer(int *cpup)
+{
+ if (*cpup == tick_do_timer_cpu) {
- tick_do_timer_cpu = (cpu != NR_CPUS) ? cpu :
++ int cpu = cpumask_first(cpu_online_mask);
+
++ tick_do_timer_cpu = (cpu < nr_cpu_ids) ? cpu :
+ TICK_DO_TIMER_NONE;
+ }
+}
+
/*
* Shutdown an event device on a given cpu:
*