From 9480815a222be61214b176836ef2b4ae4155ce84 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 21 Dec 2017 14:36:52 +0100 Subject: score: Introduce new monotonic clock Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured by timecounter). Close #3264. --- cpukit/posix/src/ualarm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/posix/src/ualarm.c') diff --git a/cpukit/posix/src/ualarm.c b/cpukit/posix/src/ualarm.c index ead14d4469..371a961c94 100644 --- a/cpukit/posix/src/ualarm.c +++ b/cpukit/posix/src/ualarm.c @@ -107,7 +107,7 @@ useconds_t ualarm( now = cpu->Watchdog.ticks; remaining = (useconds_t) _Watchdog_Cancel( - &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ], + &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_TICKS ], the_watchdog, now ); @@ -118,7 +118,7 @@ useconds_t ualarm( cpu = _Per_CPU_Get(); _Watchdog_Set_CPU( the_watchdog, cpu ); _Watchdog_Insert( - &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ], + &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_TICKS ], the_watchdog, now + ticks_initial ); -- cgit v1.2.3