LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] [3/3] Use WARN_ON_SECS in rcupreempt.h
@ 2008-03-10  6:39 Dave Young
  2008-03-19 18:57 ` [mmotm build error] " Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Young @ 2008-03-10  6:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, paulmck

Use WARN_ON_SECS in rcupreempt.h to avoid warning flood 

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>

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

diff -upr linux/include/linux/rcupreempt.h linux.new/include/linux/rcupreempt.h
--- linux/include/linux/rcupreempt.h	2008-03-10 13:33:13.000000000 +0800
+++ linux.new/include/linux/rcupreempt.h	2008-03-10 13:32:35.000000000 +0800
@@ -88,7 +88,7 @@ DECLARE_PER_CPU(long, dynticks_progress_
 static inline void rcu_enter_nohz(void)
 {
 	__get_cpu_var(dynticks_progress_counter)++;
-	WARN_ON(__get_cpu_var(dynticks_progress_counter) & 0x1);
+	WARN_ON_SECS(__get_cpu_var(dynticks_progress_counter) & 0x1, 10);
 	mb();
 }
 
@@ -96,7 +96,7 @@ static inline void rcu_exit_nohz(void)
 {
 	mb();
 	__get_cpu_var(dynticks_progress_counter)++;
-	WARN_ON(!(__get_cpu_var(dynticks_progress_counter) & 0x1));
+	WARN_ON_SECS(!(__get_cpu_var(dynticks_progress_counter) & 0x1), 10);
 }
 
 #else /* CONFIG_NO_HZ */

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

end of thread, other threads:[~2008-03-20  4:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-10  6:39 [PATCH] [3/3] Use WARN_ON_SECS in rcupreempt.h Dave Young
2008-03-19 18:57 ` [mmotm build error] " Randy Dunlap
2008-03-20  0:18   ` Dave Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).