diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-17 16:19:03 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-24 09:37:27 +0200 |
commit | ecef36987538fe7daf033c0c9344413355d615b1 (patch) | |
tree | 1b2ba4f6e3d400b791e7f279a279b86ef63e3860 /cpukit/posix | |
parent | confdefs: Warn about problematic ticks per second (diff) | |
download | rtems-ecef36987538fe7daf033c0c9344413355d615b1.tar.bz2 |
score: Rename _Watchdog_Ticks_from_*()
Rename _Watchdog_Ticks_from_*() to _Watchdog_Realtime_from_*().
This highlights that these routines are used for the CLOCK_REALTIME
watchdogs (in contrast to CLOCK_MONOTONIC).
Update #3117.
Update #3182.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/nanosleep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/nanosleep.c b/cpukit/posix/src/nanosleep.c index 13f4536f6e..b2c169373a 100644 --- a/cpukit/posix/src/nanosleep.c +++ b/cpukit/posix/src/nanosleep.c @@ -152,7 +152,7 @@ int nanosleep( if ( err != 0 ) return -1; _Timespec_Add_to( &now, rqtp ); - ticks = _Watchdog_Ticks_from_timespec( &now ); + ticks = _Watchdog_Realtime_from_timespec( &now ); err = nanosleep_helper( CLOCK_REALTIME, ticks, &now, @@ -209,7 +209,7 @@ int clock_nanosleep( _Timespec_Add_to( &timeout, rqtp ); if ( clock_id == CLOCK_REALTIME ) { - ticks = _Watchdog_Ticks_from_timespec( &timeout ); + ticks = _Watchdog_Realtime_from_timespec( &timeout ); err = nanosleep_helper( clock_id, ticks, |