summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/alarm.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-14 15:14:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-17 08:15:40 +0200
commitbf2a53d272107b8b224b1a48694da24d2d042442 (patch)
tree397d8f4917dcf8ca017aff215bdcf1d5de786f84 /cpukit/posix/src/alarm.c
parentbsp/tms570: remove duplicate of TMS570_SCI_FLR_TX_EMPTY in console driver. (diff)
downloadrtems-bf2a53d272107b8b224b1a48694da24d2d042442.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/src/alarm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/alarm.c b/cpukit/posix/src/alarm.c
index dcc56431ea..fcf8c1569a 100644
--- a/cpukit/posix/src/alarm.c
+++ b/cpukit/posix/src/alarm.c
@@ -77,14 +77,14 @@ unsigned int alarm(
now = cpu->Watchdog.ticks;
remaining = (unsigned long) _Watchdog_Cancel(
- &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
+ &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
the_watchdog,
now
);
if ( ticks != 0 ) {
_Watchdog_Insert(
- &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ],
+ &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ],
the_watchdog,
now + ticks
);