aboutsummaryrefslogtreecommitdiffstats
path: root/src/linux/watchdog.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-04-19 09:15:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-04-19 09:50:40 -0400
commit8f9e497d6950bf47274cb084a6d3d8ca2b854976 (patch)
tree6162024d89695dafc78374fda1fe3cfbfbb13b85 /src/linux/watchdog.c
parente0aba590f94e89fa6210e653bf21bd129bde42d4 (diff)
downloadkutter-8f9e497d6950bf47274cb084a6d3d8ca2b854976.tar.gz
kutter-8f9e497d6950bf47274cb084a6d3d8ca2b854976.tar.xz
kutter-8f9e497d6950bf47274cb084a6d3d8ca2b854976.zip
linux: Rework timer_check_periodic() to use ticks
Avoid using a 'struct timespec' to simplify the code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/linux/watchdog.c')
-rw-r--r--src/linux/watchdog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/watchdog.c b/src/linux/watchdog.c
index d89fcd29..d514eb27 100644
--- a/src/linux/watchdog.c
+++ b/src/linux/watchdog.c
@@ -26,7 +26,7 @@ watchdog_setup(void)
void
watchdog_task(void)
{
- static struct timespec next_watchdog_time;
+ static uint32_t next_watchdog_time;
if (watchdog_fd < 0 || !timer_check_periodic(&next_watchdog_time))
return;
int ret = write(watchdog_fd, ".", 1);