lkml.org 
[lkml]   [2008]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] [3/3] Use WARN_ON_SECS in rcupreempt.h
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 */

\
 
 \ /
  Last update: 2008-03-10 07:37    [W:0.057 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site