mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
watchdogtest: add qcom_wdt_trigger_bite for trigger wdog
Qcom introduces new watchdog architecture on 4350/8350, so use "qcom_wdt_trigger_bite" to trigger wdog when enable CONFIG_QCOM_WDT_CORE Change-Id: Ide2ccb0e5a498454359fd6544e832f109251df5c Reviewed-on: https://gerrit.mot.com/1782962 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-by: Zhenxin Xi <xizx@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
1db3478963
commit
c5ebfbf74d
1 changed files with 4 additions and 2 deletions
|
|
@ -75,14 +75,16 @@ static int watchdog_test_init(void)
|
|||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
|
||||
trigger_wdog_bite = (void *)kallsyms_lookup_name("msm_trigger_wdog_bite");
|
||||
#else
|
||||
#ifdef CONFIG_ARCH_QCOM
|
||||
#if defined(CONFIG_QCOM_WATCHDOG_V2)
|
||||
trigger_wdog_bite = msm_trigger_wdog_bite;
|
||||
#elif defined(CONFIG_QCOM_WDT_CORE)
|
||||
trigger_wdog_bite = qcom_wdt_trigger_bite;
|
||||
#else
|
||||
trigger_wdog_bite = NULL;
|
||||
#endif
|
||||
#endif
|
||||
if (!trigger_wdog_bite)
|
||||
printk(KERN_ERR "Failed to get msm_trigger_wdog_bite address\n");
|
||||
printk(KERN_ERR "Failed to get trigger_wdog_bite address\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue