summaryrefslogtreecommitdiff
path: root/include/soc/qcom/watchdog.h
diff options
context:
space:
mode:
authorRohit Vaswani <rvaswani@codeaurora.org>2014-10-02 21:02:56 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:16:31 -0700
commit77d758e28363b63c9273099fc49b901def518b96 (patch)
tree16172d18bcbab98496fb1ea72a8297231ac2b9cf /include/soc/qcom/watchdog.h
parenta54306165324edab925b8284e189f164a834ec93 (diff)
lib: spinlock: Cause a watchdog bite on spin_dump
Currently we cause a BUG_ON once a spin_bug is detected, but that causes a whole lot of processing and the other CPUs would have proceeded to perform other actions and the state of the system is moved by the time we can analyze it. Provide an option to trigger a watchdog bite instead so that we can get the traces as close to the issue as possible. Change-Id: Ic8d692ebd02c6940a3b4e5798463744db20b0026 Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Diffstat (limited to 'include/soc/qcom/watchdog.h')
-rw-r--r--include/soc/qcom/watchdog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/soc/qcom/watchdog.h b/include/soc/qcom/watchdog.h
index d82858f30a55..5fbf18143bbe 100644
--- a/include/soc/qcom/watchdog.h
+++ b/include/soc/qcom/watchdog.h
@@ -20,6 +20,10 @@
#define WDOG_BITE_ON_PANIC 0
#endif
+#ifdef CONFIG_MSM_WATCHDOG_V2
void msm_trigger_wdog_bite(void);
+#else
+static inline void msm_trigger_wdog_bite(void) { }
+#endif
#endif