Commit 35282316 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

NOHZ: Rate limit the local softirq pending warning output

The warning in the NOHZ code, which triggers when a CPU goes idle with
softirqs pending can fill up the logs quite quickly.  Rate limit the output
until we found the root cause of that problem.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 43d4f961
...@@ -167,9 +167,15 @@ void tick_nohz_stop_sched_tick(void) ...@@ -167,9 +167,15 @@ void tick_nohz_stop_sched_tick(void)
goto end; goto end;
cpu = smp_processor_id(); cpu = smp_processor_id();
if (unlikely(local_softirq_pending())) if (unlikely(local_softirq_pending())) {
static int ratelimit;
if (ratelimit < 10) {
printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n", printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n",
local_softirq_pending()); local_softirq_pending());
ratelimit++;
}
}
now = ktime_get(); now = ktime_get();
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment