From: Hwankyu Jhun Date: Thu, 14 Dec 2023 00:42:59 +0000 (+0900) Subject: Reset retrying count while getting kick request X-Git-Tag: accepted/tizen/8.0/unified/20231214.164518~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b5a6402019fce3e69c7221e86adfe1a9616e57e;p=platform%2Fcore%2Fappfw%2Famd.git Reset retrying count while getting kick request When getting the kick request from the application, amd resets the retry_count value to 0. Change-Id: I6d71c09965eb67c30a5d40b293dbf883a3adb233 Signed-off-by: Hwankyu Jhun --- diff --git a/src/modules/watchdog/src/amd_watchdog.c b/src/modules/watchdog/src/amd_watchdog.c index 17217f48..25dd54a3 100644 --- a/src/modules/watchdog/src/amd_watchdog.c +++ b/src/modules/watchdog/src/amd_watchdog.c @@ -288,6 +288,8 @@ static int __dispatch_watchdog_kick(amd_request_h req) __watchdog_unset_timer(ctx); __watchdog_set_timer(ctx); + clock_gettime(CLOCK_MONOTONIC, &ctx->resp_time); + ctx->retry_count = 0; ctx->kick_count++; _I("pid(%d), kick count(%d)", pid, ctx->kick_count);