Skip to content

Commit a041988

Browse files
Jon HunterKAGA-KOKO
authored andcommitted
timers: allow deferrable timers for intervals tv2-tv5 to be deferred
In the current kernel implementation only kernel timers for time interval tv1 are being deferred. This patch allows any timer that is configured as deferrable to be defer regardless of time interval. This patch was previously discussed in http://marc.info/?l=linux-kernel&m=123196343531966&w=2 and was acked by Venki Pallipadi, the author of the original deferrable timer patch. Signed-off-by: Jon Hunter <[email protected]> Acked-by: Venkatesh Pallipadi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 091438d commit a041988

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernel/timer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,9 @@ static unsigned long __next_timer_interrupt(struct tvec_base *base)
10151015
index = slot = timer_jiffies & TVN_MASK;
10161016
do {
10171017
list_for_each_entry(nte, varp->vec + slot, entry) {
1018+
if (tbase_get_deferrable(nte->base))
1019+
continue;
1020+
10181021
found = 1;
10191022
if (time_before(nte->expires, expires))
10201023
expires = nte->expires;

0 commit comments

Comments
 (0)