sched: Add a check for cpu unbound deferrable timers

Add a check for cpu unbound deferrable timer expiry and raise
softirq for handling the expired timers so that the CPU can
process the cpu unbound deferrable times as early as possible
when a cpu tries to enter/exit idle loop.

Change-Id: Ieffa74fa22a4d25493f5590b5ac1e0d784fcbbad
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
[rishabhb@codeaurora.org: Resolved conflicts due to addition of
commit: time: tick-sched: Reorganize idle tick management code]
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
Prasad Sodagudi
2017-05-17 23:26:09 -07:00
committed by Gerrit - the friendly Code Review server
parent 85e1beff68
commit 7650c440a8
3 changed files with 40 additions and 1 deletions

View File

@@ -161,6 +161,9 @@ extern int del_timer(struct timer_list * timer);
extern int mod_timer(struct timer_list *timer, unsigned long expires);
extern int mod_timer_pending(struct timer_list *timer, unsigned long expires);
extern int timer_reduce(struct timer_list *timer, unsigned long expires);
#ifdef CONFIG_SMP
extern bool check_pending_deferrable_timers(int cpu);
#endif
/*
* The jiffies value which is added to now, when there is no timer