From bf2a53d272107b8b224b1a48694da24d2d042442 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 14 Oct 2017 15:14:53 +0200 Subject: score: Rename watchdog variants Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182. --- cpukit/posix/src/ualarm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/posix/src/ualarm.c') diff --git a/cpukit/posix/src/ualarm.c b/cpukit/posix/src/ualarm.c index 86fe1b05cc..1626153651 100644 --- a/cpukit/posix/src/ualarm.c +++ b/cpukit/posix/src/ualarm.c @@ -55,7 +55,7 @@ static void _POSIX_signals_Ualarm_TSR( Watchdog_Control *the_watchdog ) * If the reset interval is non-zero, reschedule ourselves. */ if ( _POSIX_signals_Ualarm_interval != 0 ) { - _Watchdog_Per_CPU_insert_relative( + _Watchdog_Per_CPU_insert_monotonic( the_watchdog, _Per_CPU_Get(), _POSIX_signals_Ualarm_interval @@ -107,7 +107,7 @@ useconds_t ualarm( now = cpu->Watchdog.ticks; remaining = (useconds_t) _Watchdog_Cancel( - &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ], + &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ], 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_RELATIVE ], + &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ], the_watchdog, now + ticks_initial ); -- cgit v1.2.3