Commit fb70b5888b70b0b50f738fbfc019445493112eb1

Authored by Jason Wessel
1 parent 16cdc628c3

debug_core: stop rcu warnings on kernel resume

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

kernel/debug/debug_core.c
... ... @@ -47,6 +47,7 @@
47 47 #include <linux/pid.h>
48 48 #include <linux/smp.h>
49 49 #include <linux/mm.h>
  50 +#include <linux/rcupdate.h>
50 51  
51 52 #include <asm/cacheflush.h>
52 53 #include <asm/byteorder.h>
... ... @@ -474,6 +475,7 @@
474 475 {
475 476 touch_softlockup_watchdog_sync();
476 477 clocksource_touch_watchdog();
  478 + rcu_cpu_stall_reset();
477 479 }
478 480  
479 481 static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs)