[PATCH -rt] softirq: fix undefined rate_limit in softirq_check_pending_idle
From: Wu Zhangjin
Date: Fri Jun 26 2009 - 04:16:45 EST
From: Wu Zhangjin <wuzj@xxxxxxxxxx>
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@xxxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/