Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/xmon: Reset RCU and soft lockup watchdogs

I'm seeing RCU warnings when exiting xmon. xmon resets the NMI
watchdog, but does nothing with the RCU stall or soft lockup
watchdogs. Add a helper function that handles all three.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200630100218.62a3c3fb@kryten.localdomain

authored by

Anton Blanchard and committed by
Michael Ellerman
5c699396 3337bf41

+8 -1
+8 -1
arch/powerpc/xmon/xmon.c
··· 481 481 #endif 482 482 } 483 483 484 + static void xmon_touch_watchdogs(void) 485 + { 486 + touch_softlockup_watchdog_sync(); 487 + rcu_cpu_stall_reset(); 488 + touch_nmi_watchdog(); 489 + } 490 + 484 491 static int xmon_core(struct pt_regs *regs, int fromipi) 485 492 { 486 493 int cmd = 0; ··· 725 718 else 726 719 insert_cpu_bpts(); 727 720 728 - touch_nmi_watchdog(); 721 + xmon_touch_watchdogs(); 729 722 local_irq_restore(flags); 730 723 731 724 return cmd != 'X' && cmd != EOF;