projects
/
platform
/
core
/
appfw
/
amd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a4396c
)
Reset retrying count while getting kick request
98/302798/2
author
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 14 Dec 2023 00:42:59 +0000
(09:42 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 14 Dec 2023 00:52:24 +0000
(09:52 +0900)
When getting the kick request from the application, amd resets
the retry_count value to 0.
Change-Id: I6d71c09965eb67c30a5d40b293dbf883a3adb233
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/modules/watchdog/src/amd_watchdog.c
patch
|
blob
|
history
diff --git
a/src/modules/watchdog/src/amd_watchdog.c
b/src/modules/watchdog/src/amd_watchdog.c
index
17217f4
..
25dd54a
100644
(file)
--- 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);