From bba552f4fc0046325f29156720a04623a71821d5 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: I370e404001344e635a663822b07557abbe0f6f52 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 --- kernel/time/timer.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) {