From: Thomas Gleixner Date: Mon, 19 Feb 2007 18:12:05 +0000 (+0000) Subject: [PATCH] NOHZ: Produce debug output instead of a BUG() X-Git-Tag: v2.6.21-rc1~61 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bc5393a6c9c0e70b4b43fb2fb63e3315e9a15c8f;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Linus Torvalds --- diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 9234e44fc94..512a4a90646 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -165,7 +165,9 @@ void tick_nohz_stop_sched_tick(void) goto end; cpu = smp_processor_id(); - BUG_ON(local_softirq_pending()); + if (unlikely(local_softirq_pending())) + printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n", + local_softirq_pending()); now = ktime_get(); /*