mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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:
parent
205d6619be
commit
ad4ce8c7d2
4 changed files with 45 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue