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>
[rameezmustafa@codeaurora.org: Port to msm-4.9]
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 745fd02..34bab5c 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1863,6 +1863,13 @@
return 0;
}
+#ifdef CONFIG_CPUSETS
+void timer_quiesce_cpu(void *cpup)
+{
+ __migrate_timers(*(unsigned int *)cpup, false);
+}
+#endif /* CONFIG_CPUSETS */
+
#endif /* CONFIG_HOTPLUG_CPU */
static void __init init_timer_cpu(int cpu)