diff options
| author | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | 2014-08-06 14:06:33 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:02:15 -0700 |
| commit | aff6914761d2f449aaec92ebc43ad15499640d12 (patch) | |
| tree | 4b598547fa5668a595d12dfb877b0ac219483446 /include | |
| parent | 96864fd7edce57e2e3c06b0f1ee4a56a8eb8018f (diff) | |
soc: qcom: watchdog_v2: Add support to trigger watchdog bite on panic
In certain cases during a kernel panic,the interrupts on non-panicking
CPUs are disabled. Since CPU context cannot be collected by sending IPI
to those CPUs, we're limited to debug the problem. Forcing a watchdog
bite during kernel panic will ensure us getting the proper CPU context.
Hence adding support for the same.
Change-Id: Id06030d9bc46d94209da7f0ef8c47bfd3477baf6
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
[abhimany: resolve trivial merge conflicts]
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/soc/qcom/watchdog.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/soc/qcom/watchdog.h b/include/soc/qcom/watchdog.h new file mode 100644 index 000000000000..d82858f30a55 --- /dev/null +++ b/include/soc/qcom/watchdog.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2014, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#ifndef _ASM_ARCH_MSM_WATCHDOG_H_ +#define _ASM_ARCH_MSM_WATCHDOG_H_ + +#ifdef CONFIG_QCOM_FORCE_WDOG_BITE_ON_PANIC +#define WDOG_BITE_ON_PANIC 1 +#else +#define WDOG_BITE_ON_PANIC 0 +#endif + +void msm_trigger_wdog_bite(void); + +#endif |
