[RFC] [PATCH 1/1]: timers: Change add_timer to use add_timer_on

From: Krishna Kumar
Date: Mon Sep 22 2008 - 00:34:51 EST


From: Krishna Kumar <krkumar2@xxxxxxxxxx>

timer: Change add_timer to not check for existing timer.

Signed-off-by: Krishna Kumar <krkumar2@xxxxxxxxxx>
---

include/linux/timer.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff -ruNp 2.6.27-rc7-org/include/linux/timer.h 2.6.27-rc7-new/include/linux/timer.h
--- 2.6.27-rc7-org/include/linux/timer.h 2008-09-17 17:40:36.000000000 +0530
+++ 2.6.27-rc7-new/include/linux/timer.h 2008-09-17 17:41:50.000000000 +0530
@@ -4,6 +4,7 @@
#include <linux/list.h>
#include <linux/ktime.h>
#include <linux/stddef.h>
+#include <linux/smp.h>
#include <linux/debugobjects.h>

struct tvec_base;
@@ -162,8 +163,7 @@ static inline void timer_stats_timer_cle
*/
static inline void add_timer(struct timer_list *timer)
{
- BUG_ON(timer_pending(timer));
- __mod_timer(timer, timer->expires);
+ add_timer_on(timer, raw_smp_processor_id());
}

#ifdef CONFIG_SMP
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/