summaryrefslogtreecommitdiff
path: root/kernel/time/timer.c
diff options
context:
space:
mode:
authorSantosh Shukla <santosh.shukla@linaro.org>2015-03-25 16:09:32 +0530
committerOlav Haugan <ohaugan@codeaurora.org>2016-09-20 17:47:12 -0700
commitbba552f4fc0046325f29156720a04623a71821d5 (patch)
tree8969e92be4b39b3a226241caf30801186f91c856 /kernel/time/timer.c
parent84e39dcb3bf4b0ea5ed9b1bcd1b1fb43d2a4bc63 (diff)
timer: Add function to migrate timers
Add function to migrate timer that will be used by later patch set. Change-Id: I370e404001344e635a663822b07557abbe0f6f52 Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> [ohaugan@codeaurora.org: Updated commit text and fixed trivial merge conflict] Git-commit: 3633b88d8fcb4273807574c27c328b6908a741e5 Git-repo: git://git.linaro.org/people/mike.holmes/santosh.shukla/lng-isol.git Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Diffstat (limited to 'kernel/time/timer.c')
-rw-r--r--kernel/time/timer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 067174a4dde3..d38a67a49550 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1695,6 +1695,13 @@ static void migrate_timers(int cpu)
__migrate_timers(cpu, false, true);
}
+#ifdef CONFIG_CPUSETS
+void timer_quiesce_cpu(void *cpup)
+{
+ __migrate_timers(*(int *)cpup, true, false);
+}
+#endif /* CONFIG_CPUSETS */
+
static int timer_cpu_notify(struct notifier_block *self,
unsigned long action, void *hcpu)
{