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>
This commit is contained in:
Santosh Shukla 2015-03-25 16:09:32 +05:30 committed by Olav Haugan
parent 84e39dcb3b
commit bba552f4fc

View file

@ -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)
{