aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Hunter <jon-hunter@ti.com>2009-05-01 16:10:23 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-05-02 04:36:06 -0400
commita04198887658e1d8ae25f5420035c057cb170e67 (patch)
treed6ed8b34265937f40bfec1bccec31ab86f6ac753
parent091438dd5668396328a3419abcbc6591159eb8d1 (diff)
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 <jon-hunter@ti.com> Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/timer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/timer.c b/kernel/timer.c
index cffffad01c31..5c1e84beaf4a 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1015,6 +1015,9 @@ cascade:
1015 index = slot = timer_jiffies & TVN_MASK; 1015 index = slot = timer_jiffies & TVN_MASK;
1016 do { 1016 do {
1017 list_for_each_entry(nte, varp->vec + slot, entry) { 1017 list_for_each_entry(nte, varp->vec + slot, entry) {
1018 if (tbase_get_deferrable(nte->base))
1019 continue;
1020
1018 found = 1; 1021 found = 1;
1019 if (time_before(nte->expires, expires)) 1022 if (time_before(nte->expires, expires))
1020 expires = nte->expires; 1023 expires = nte->expires;