From 2d9dd2dcc396e8f4271317441e85b5c9f13a939f Mon Sep 17 00:00:00 2001 From: Santosh Shukla Date: Wed, 25 Mar 2015 16:09:32 +0530 Subject: [PATCH] timer: Add function to migrate timers Add function to migrate timer that will be used by later patch set. Change-Id: I2d4fbe312fe635273c7386aba8378937f4b0ac15 Signed-off-by: Santosh Shukla [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 [rameezmustafa@codeaurora.org: Port to msm-4.9] Signed-off-by: Syed Rameez Mustafa Signed-off-by: Satya Durga Srinivasu Prabhala --- kernel/time/timer.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/time/timer.c b/kernel/time/timer.c index d168d6ff3799..7f772cdeca5d 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -2057,6 +2057,13 @@ int timers_dead_cpu(unsigned int cpu) 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)