soc: qcom: Add watchdog bite in panic

Add watchdog bite in panic by registering a restart handler. Also add
support for an earlier watchdog bite in the panic handler itself, which
should provide a better context for post-mortem analysis.

Change-Id: Ib6530fa754b78fd26a9f7d5a348b1e7ceb3c1f96
Signed-off-by: Elliot Berman <[email protected]>
This commit is contained in:
Elliot Berman 2019-10-18 11:19:58 -07:00
commit ad4ce8c7d2
4 changed files with 45 additions and 8 deletions

View file

@ -12,6 +12,12 @@
#define WDOG_BITE_ON_PANIC 0
#endif
#ifdef CONFIG_QCOM_WDOG_BITE_EARLY_PANIC
#define WDOG_BITE_EARLY_PANIC 1
#else
#define WDOG_BITE_EARLY_PANIC 0
#endif
#if IS_ENABLED(CONFIG_QCOM_WATCHDOG)
void msm_trigger_wdog_bite(void);
#else