Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] NOHZ: Produce debug output instead of a BUG()

The BUG_ON() in tick_nohz_stop_sched_tick() triggers on some boxen.
Remove the BUG_ON and print information about the pending softirq
to allow better debugging of the problem.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Thomas Gleixner and committed by
Linus Torvalds
bc5393a6 6ba9b346

+3 -1
+3 -1
kernel/time/tick-sched.c
··· 165 165 goto end; 166 166 167 167 cpu = smp_processor_id(); 168 - BUG_ON(local_softirq_pending()); 168 + if (unlikely(local_softirq_pending())) 169 + printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n", 170 + local_softirq_pending()); 169 171 170 172 now = ktime_get(); 171 173 /*