diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-10-11 17:05:18 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2024-01-08 14:01:21 +0100 |
commit | d79c35a6a4e026ed1ca6a445ade63f193e28b512 (patch) | |
tree | 72b269829c1adba38dfe6015d4e4409e92207872 | |
parent | 3baf2b529c69774b53dbabd01e8e18a505090fed (diff) |
softdog: Obey hardlockup_all_cpu_backtrace sysctl
This is used by the nmi watchdog, but also useful by the softdog when
we're trying to figure out where exactly we're stuck.
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-watchdog@vger.kernel.org
References: https://bugs.freedesktop.org/show_bug.cgi?id=103160
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
FIXME: Take the && 1 out once CI is configured to enable this.
-Daniel
-rw-r--r-- | drivers/watchdog/softdog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/watchdog/softdog.c b/drivers/watchdog/softdog.c index 7a1096265f18..9f2530fadbdc 100644 --- a/drivers/watchdog/softdog.c +++ b/drivers/watchdog/softdog.c @@ -84,6 +84,8 @@ static enum hrtimer_restart softdog_fire(struct hrtimer *timer) pr_crit("Triggered - Reboot ignored\n"); } else if (soft_panic) { pr_crit("Initiating panic\n"); + if (sysctl_hardlockup_all_cpu_backtrace && 1) + trigger_allbutself_cpu_backtrace(); panic("Software Watchdog Timer expired"); } else { pr_crit("Initiating system reboot\n"); |