[rtems commit] score: Rename _Watchdog_Realtime_from_*()

Sebastian Huber sebh at rtems.org
Fri Feb 2 14:20:40 UTC 2018


Module:    rtems
Branch:    master
Commit:    3a4e044e6461a6f03edbae94ca6efd91d4c206de
Changeset: http://git.rtems.org/rtems/commit/?id=3a4e044e6461a6f03edbae94ca6efd91d4c206de

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec 22 10:35:47 2017 +0100

score: Rename _Watchdog_Realtime_from_*()

Rename _Watchdog_Realtime_from_*() to _Watchdog_Ticks_from_*().

Update #3264.

---

 cpukit/include/rtems/score/watchdogimpl.h | 6 +++---
 cpukit/rtems/src/taskwakewhen.c           | 2 +-
 cpukit/rtems/src/timercreate.c            | 2 +-
 cpukit/score/src/coretodset.c             | 2 +-
 cpukit/score/src/threadqtimeout.c         | 4 ++--
 cpukit/score/src/watchdogtick.c           | 2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/cpukit/include/rtems/score/watchdogimpl.h b/cpukit/include/rtems/score/watchdogimpl.h
index f1693d9..9701fb7 100644
--- a/cpukit/include/rtems/score/watchdogimpl.h
+++ b/cpukit/include/rtems/score/watchdogimpl.h
@@ -392,7 +392,7 @@ RTEMS_INLINE_ROUTINE bool _Watchdog_Is_far_future_realtime_timespec(
   return ts->tv_sec > WATCHDOG_REALTIME_MAX_SECONDS;
 }
 
-RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Realtime_from_seconds(
+RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Ticks_from_seconds(
   uint32_t seconds
 )
 {
@@ -403,7 +403,7 @@ RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Realtime_from_seconds(
   return ticks;
 }
 
-RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Realtime_from_timespec(
+RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Ticks_from_timespec(
   const struct timespec *ts
 )
 {
@@ -420,7 +420,7 @@ RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Realtime_from_timespec(
   return ticks;
 }
 
-RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Realtime_from_sbintime(
+RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Ticks_from_sbintime(
   sbintime_t sbt
 )
 {
diff --git a/cpukit/rtems/src/taskwakewhen.c b/cpukit/rtems/src/taskwakewhen.c
index 228dd98..ac92ea8 100644
--- a/cpukit/rtems/src/taskwakewhen.c
+++ b/cpukit/rtems/src/taskwakewhen.c
@@ -56,7 +56,7 @@ rtems_status_code rtems_task_wake_when(
       executing,
       cpu_self,
       _Thread_Timeout,
-      _Watchdog_Realtime_from_seconds( seconds )
+      _Watchdog_Ticks_from_seconds( seconds )
     );
   _Thread_Dispatch_enable( cpu_self );
   return RTEMS_SUCCESSFUL;
diff --git a/cpukit/rtems/src/timercreate.c b/cpukit/rtems/src/timercreate.c
index 42492c2..444b07c 100644
--- a/cpukit/rtems/src/timercreate.c
+++ b/cpukit/rtems/src/timercreate.c
@@ -80,7 +80,7 @@ rtems_status_code _Timer_Fire(
       _Watchdog_Insert(
         &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_REALTIME ],
         &the_timer->Ticker,
-        _Watchdog_Realtime_from_seconds( interval )
+        _Watchdog_Ticks_from_seconds( interval )
       );
     }
 
diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c
index 787c263..020b887 100644
--- a/cpukit/score/src/coretodset.c
+++ b/cpukit/score/src/coretodset.c
@@ -37,7 +37,7 @@ void _TOD_Set(
   timespec2bintime( tod, &tod_as_bintime );
   _Timecounter_Set_clock( &tod_as_bintime, lock_context );
 
-  tod_as_ticks = _Watchdog_Realtime_from_timespec( tod );
+  tod_as_ticks = _Watchdog_Ticks_from_timespec( tod );
   cpu_count = _SMP_Get_processor_count();
 
   for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
diff --git a/cpukit/score/src/threadqtimeout.c b/cpukit/score/src/threadqtimeout.c
index 3f052fc..691f643 100644
--- a/cpukit/score/src/threadqtimeout.c
+++ b/cpukit/score/src/threadqtimeout.c
@@ -119,12 +119,12 @@ void _Thread_queue_Add_timeout_realtime_timespec(
     } else if ( _Watchdog_Is_far_future_realtime_timespec( abstime ) ) {
       expire = WATCHDOG_MAXIMUM_TICKS;
     } else {
-      expire = _Watchdog_Realtime_from_timespec( abstime );
+      expire = _Watchdog_Ticks_from_timespec( abstime );
     }
 
     _Timecounter_Getnanotime( &now );
 
-    if ( expire > _Watchdog_Realtime_from_timespec( &now ) ) {
+    if ( expire > _Watchdog_Ticks_from_timespec( &now ) ) {
       ISR_lock_Context lock_context;
 
       _ISR_lock_ISR_disable_and_acquire(
diff --git a/cpukit/score/src/watchdogtick.c b/cpukit/score/src/watchdogtick.c
index 7a5863b..e9160f2 100644
--- a/cpukit/score/src/watchdogtick.c
+++ b/cpukit/score/src/watchdogtick.c
@@ -91,7 +91,7 @@ void _Watchdog_Tick( Per_CPU_Control *cpu )
     _Watchdog_Tickle(
       header,
       first,
-      _Watchdog_Realtime_from_timespec( &now ),
+      _Watchdog_Ticks_from_timespec( &now ),
       &cpu->Watchdog.Lock,
       &lock_context
     );




More information about the vc mailing list