lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 22 Sep 2008 10:04:38 +0530
From:	Krishna Kumar <krkumar2@...ibm.com>
To:	linux-kernel@...r.kernel.org
Cc:	Krishna Kumar <krkumar2@...ibm.com>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: [RFC] [PATCH 1/1]: timers: Change add_timer to use add_timer_on

From: Krishna Kumar <krkumar2@...ibm.com>

timer: Change add_timer to not check for existing timer.

Signed-off-by: Krishna Kumar <krkumar2@...ibm.com>
---

 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@...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

Powered by Openwall GNU/*/Linux Powered by OpenVZ