mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wu Zhangjin <wuzhangjin@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Wu Zhangjin <wuzj@lemote.com>,
	Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>
Subject: [PATCH -rt] softirq: fix undefined rate_limit in softirq_check_pending_idle
Date: Fri, 26 Jun 2009 15:46:13 +0800	[thread overview]
Message-ID: <e1ad7dd41b964ad729595fc97ad8c4b26a119de4.1246002312.git.wuzj@lemote.com> (raw)

From: Wu Zhangjin <wuzj@lemote.com>

on !PREEMPT_RT, there is a defined ratelimit in
softirq_check_pending_idel(), but used as rate_limit, so, defining
rate_limit instead of ratelimit will fix it.

Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
---
 kernel/softirq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/softirq.c b/kernel/softirq.c
index 00b4638..38b44c9 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -155,9 +155,9 @@ void softirq_check_pending_idle(void)
  */
 void softirq_check_pending_idle(void)
 {
-	static int ratelimit;
+	static int rate_limit;
 
-	if (ratelimit < 10) {
+	if (rate_limit < 10) {
 		printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n",
 		       local_softirq_pending());
 		rate_limit++;
-- 
1.6.0.4


             reply	other threads:[~2009-06-26  8:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26  7:46 Wu Zhangjin [this message]
2009-06-26  7:47 ` [PATCH -rt] hwlat_detector: add dependence of RING_BUFFER Wu Zhangjin

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=e1ad7dd41b964ad729595fc97ad8c4b26a119de4.1246002312.git.wuzj@lemote.com \
    --to=wuzhangjin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --cc=wuzj@lemote.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®