From: Dongil Park Date: Fri, 24 Aug 2018 05:46:44 +0000 (+0900) Subject: autoboot.c: Disable watchdog when autoboot aborted X-Git-Tag: submit/tizen/20190213.074817~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0729d7ca9e90d13a113d65e6367db044f9485d5b;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik7.git autoboot.c: Disable watchdog when autoboot aborted This patch disable watchdog when autoboot aborted by user. Change-Id: I76699c9ca22123a49ebd3e9d5239301252bd53b9 Signed-off-by: Dongil Park --- diff --git a/common/autoboot.c b/common/autoboot.c index c11fb31236..31a3ed62f1 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -14,6 +14,9 @@ #include #include #include +#if defined(CONFIG_S5P6818_WATCHDOG) +#include +#endif DECLARE_GLOBAL_DATA_PTR; @@ -369,6 +372,12 @@ void autoboot_command(const char *s) disable_ctrlc(prev); /* restore Control C checking */ #endif } +#if defined(CONFIG_S5P6818_WATCHDOG) + else { + /* We should stop watchdog in case of abort */ + watchdog_reset(); + } +#endif #ifdef CONFIG_MENUKEY if (menukey == CONFIG_MENUKEY) {