Commit:     bc5393a6c9c0e70b4b43fb2fb63e3315e9a15c8f
Parent:     6ba9b346e1e0eca65ec589d32de3a9fe32dc5de6
Author:     Thomas Gleixner <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 19 18:12:05 2007 +0000
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Feb 19 14:18:43 2007 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 kernel/time/tick-sched.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 9234e44..512a4a9 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();
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to