debug_core: stop rcu warnings on kernel resume
authorJason Wessel <jason.wessel@windriver.com>
Fri, 13 Aug 2010 17:44:04 +0000 (12:44 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 22 Oct 2010 20:34:10 +0000 (15:34 -0500)
When returning from the kernel debugger reset the rcu jiffies_stall
value to prevent the rcu stall detector from sending NMI events which
invoke a stack dump for each cpu in the system.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/debug_core.c

index c812857d0b808b3b6254f4586429957140ddcceb..5a3b04d204973043c266f6241946d0c0d572247d 100644 (file)
@@ -47,6 +47,7 @@
 #include <linux/pid.h>
 #include <linux/smp.h>
 #include <linux/mm.h>
+#include <linux/rcupdate.h>
 
 #include <asm/cacheflush.h>
 #include <asm/byteorder.h>
@@ -474,6 +475,7 @@ static void dbg_touch_watchdogs(void)
 {
        touch_softlockup_watchdog_sync();
        clocksource_touch_watchdog();
+       rcu_cpu_stall_reset();
 }
 
 static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs)