diff options
author | Renn Wu <rewu@nvidia.com> | 2015-02-03 10:27:18 +0800 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2015-06-08 12:01:04 -0700 |
commit | b1de4caf2f12e1bc9c3a4e08dd60b5de53b7520a (patch) | |
tree | 727935d014482a714ef9808ce4245ca4a6b19efc /include | |
parent | d89af238e13dbd1f2a01cb5392902313ad367ef2 (diff) |
watchdog: use FIQ WDT for soft lockup stack dump
Using Tegra WDT to trigger FIQ when system is in soft lockup.
Bug 1581432
Change-Id: I853a88a3f6e9402c978db18c5a63e903c582040a
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/265871
(cherry picked from commit f115f435d471af22ddec5e9d969662f79193f846)
Reviewed-on: http://git-master/r/680353
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nmi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/nmi.h b/include/linux/nmi.h index a461766a8685..73fc09b5c1ec 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h @@ -1,6 +1,8 @@ /* * linux/include/linux/nmi.h + * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. */ + #ifndef LINUX_NMI_H #define LINUX_NMI_H @@ -57,4 +59,12 @@ extern int proc_dowatchdog(struct ctl_table *, int , extern int watchdog_get_lockup_state(void); #endif +static inline void set_wdt_nmi_ack_off(void) +{ +#if defined(CONFIG_TEGRA_WDT_FIQ_SOFT_HANG_STACK_DUMP) + extern bool wdt_nmi_ack_off; + wdt_nmi_ack_off = true; +#endif +} + #endif |