[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1214807889-11648-1-git-send-email-jouni.hogander@nokia.com>
Date: Mon, 30 Jun 2008 09:38:09 +0300
From: Jouni Hogander <jouni.hogander@...ia.com>
To: linux-kernel@...r.kernel.org
Cc: venkatesh.pallipadi@...el.com
Subject: [PATCH] Do deferrable flag check also for timers in tv2-tv5
Currently deferrable flag is checked only for timers in tv1. This
patch adds check for timers in tv2-tv5 also. This way
__next_timer_interrupt returns value earlier than timer_jiffies +
NEXT_TIMER_MAX_DELTA only if there is a non-deferrable timer
scheduled.
Signed-off-by: Jouni Hogander <jouni.hogander@...ia.com>
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@...el.com>
---
kernel/timer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/timer.c b/kernel/timer.c
index ceacc66..929fb36 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -861,6 +861,8 @@ cascade:
index = slot = timer_jiffies & TVN_MASK;
do {
list_for_each_entry(nte, varp->vec + slot, entry) {
+ if (tbase_get_deferrable(nte->base))
+ continue;
found = 1;
if (time_before(nte->expires, expires))
expires = nte->expires;
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists