aboutsummaryrefslogtreecommitdiff
path: root/kernel/time/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/timer.c')
-rw-r--r--kernel/time/timer.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 6118b0bab8b8..de81f5085da3 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1668,7 +1668,7 @@ static void __migrate_timers(int cpu, bool remove_pinned)
}
spin_unlock(&old_base->lock);
- spin_unlock_irqrestore(&new_base->lock, flag);
+ spin_unlock_irqrestore(&new_base->lock, flags);
put_cpu_var(tvec_bases);
}
#endif /* CONFIG_HOTPLUG_CPU || CONFIG_CPUSETS */
@@ -1681,6 +1681,13 @@ static void migrate_timers(int cpu)
}
#endif /* CONFIG_HOTPLUG_CPU */
+#ifdef CONFIG_CPUSETS
+void timer_quiesce_cpu(void *cpup)
+{
+ __migrate_timers(*(int *)cpup, false);
+}
+#endif /* CONFIG_CPUSETS */
+
static int timer_cpu_notify(struct notifier_block *self,
unsigned long action, void *hcpu)
{