public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Allow deferrable timers for intervals tv2-tv5 to be deferred
@ 2009-04-09 14:54 Jon Hunter
  2009-04-09 16:18 ` Pallipadi, Venkatesh
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Hunter @ 2009-04-09 14:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: venkatesh.pallipadi

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 on another the thread [1] and Ack'ed 
  by Venki Pallipadi the author of the original deferrable timer patch.

Venki, could you also ack this patch for confirmation?

Cheers
Jon

[1] http://marc.info/?l=linux-kernel&m=123196343531966&w=2


Signed-off-by: Jon Hunter <jon-hunter@ti.com>
---
  kernel/timer.c |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/timer.c b/kernel/timer.c
index b455556..6ab6e96 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1012,6 +1012,9 @@ 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;
-- 
1.6.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-13  0:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-09 14:54 [PATCH] Allow deferrable timers for intervals tv2-tv5 to be deferred Jon Hunter
2009-04-09 16:18 ` Pallipadi, Venkatesh
2009-05-12  4:11   ` ye janboe
2009-05-13  0:18     ` Jon Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox