timer: Add a global deferrable timer

Add a global deferrable timer in addition to the per-cpu deferrable timer
to allow deferrable timers without the TIMER_PINNED flag to run
on any active CPU.

[rishabhb@codeaurora.org: Resolved conflicts in kernel/time/timer.c]
Change-Id: I8e6b77cef972589912ad18f324c46c936fbbb96f
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
Kyle Yan
2017-02-24 16:49:27 -08:00
committed by Elliot Berman
parent e99d705509
commit 489af2b126
2 changed files with 16 additions and 5 deletions

View File

@@ -172,6 +172,8 @@ extern void add_timer(struct timer_list *timer);
extern int try_to_del_timer_sync(struct timer_list *timer);
extern struct timer_base timer_base_deferrable;
#ifdef CONFIG_SMP
extern int del_timer_sync(struct timer_list *timer);
#else