From aff6914761d2f449aaec92ebc43ad15499640d12 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Wed, 6 Aug 2014 14:06:33 -0700 Subject: 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 [abhimany: resolve trivial merge conflicts] Signed-off-by: Abhimanyu Kapur --- include/soc/qcom/watchdog.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/soc/qcom/watchdog.h (limited to 'include') 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 -- cgit v1.2.3