Commit c22db941 authored by Jan Beulich's avatar Jan Beulich Committed by Linus Torvalds

[PATCH] prevent recursive panic from softlockup watchdog

When panic_timeout is zero, suppress triggering a nested panic due to soft
lockup detection.
Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7a8ef1cb
...@@ -130,6 +130,7 @@ NORET_TYPE void panic(const char * fmt, ...) ...@@ -130,6 +130,7 @@ NORET_TYPE void panic(const char * fmt, ...)
#endif #endif
local_irq_enable(); local_irq_enable();
for (i = 0;;) { for (i = 0;;) {
touch_softlockup_watchdog();
i += panic_blink(i); i += panic_blink(i);
mdelay(1); mdelay(1);
i++; i++;
......
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