LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Dave Young <hidave.darkstar@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, paulmck@linux.vnet.ibm.com
Subject: [PATCH] [3/3] Use WARN_ON_SECS in rcupreempt.h
Date: Mon, 10 Mar 2008 14:39:22 +0800 [thread overview]
Message-ID: <20080310063922.GC6745@darkstar.te-china.tietoenator.com> (raw)
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 */
next reply other threads:[~2008-03-10 6:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-10 6:39 Dave Young [this message]
2008-03-19 18:57 ` [mmotm build error] " Randy Dunlap
2008-03-20 0:18 ` Dave Young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080310063922.GC6745@darkstar.te-china.tietoenator.com \
--to=hidave.darkstar@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
--subject='Re: [PATCH] [3/3] Use WARN_ON_SECS in rcupreempt.h' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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).