Satyajit Desai | 5255cea | 2016-08-04 16:02:50 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2016, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef _ASM_ARCH_MSM_WATCHDOG_H_ |
| 15 | #define _ASM_ARCH_MSM_WATCHDOG_H_ |
| 16 | |
| 17 | #ifdef CONFIG_QCOM_FORCE_WDOG_BITE_ON_PANIC |
| 18 | #define WDOG_BITE_ON_PANIC 1 |
| 19 | #else |
| 20 | #define WDOG_BITE_ON_PANIC 0 |
| 21 | #endif |
| 22 | |
| 23 | #ifdef CONFIG_QCOM_WATCHDOG_V2 |
| 24 | void msm_trigger_wdog_bite(void); |
| 25 | #else |
| 26 | static inline void msm_trigger_wdog_bite(void) { } |
| 27 | #endif |
| 28 | |
| 29 | #endif |