[rtems commit] score: Delete _TOD_Activate and _TOD_Deactivate

Sebastian Huber sebh at rtems.org
Thu Aug 1 14:41:52 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jul 31 14:52:19 2013 +0200

score: Delete _TOD_Activate and _TOD_Deactivate

---

 cpukit/score/include/rtems/score/todimpl.h |   18 ------------------
 cpukit/score/src/coretod.c                 |    1 -
 cpukit/score/src/coretodset.c              |    2 --
 3 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/cpukit/score/include/rtems/score/todimpl.h b/cpukit/score/include/rtems/score/todimpl.h
index f16390e..34db063 100644
--- a/cpukit/score/include/rtems/score/todimpl.h
+++ b/cpukit/score/include/rtems/score/todimpl.h
@@ -285,24 +285,6 @@ uint32_t TOD_TICKS_PER_SECOND_method(void);
 #define TOD_TICKS_PER_SECOND TOD_TICKS_PER_SECOND_method()
 
 /**
- * This routine deactivates updating of the current time of day.
- */
-
-RTEMS_INLINE_ROUTINE void _TOD_Deactivate( void )
-{
-  /* XXX do we need something now that we are using timespec for TOD */
-}
-
-/**
- * This routine activates updating of the current time of day.
- */
-
-RTEMS_INLINE_ROUTINE void _TOD_Activate( void )
-{
-  /* XXX do we need something now that we are using timespec for TOD */
-}
-
-/**
  * This routine returns a timeval based upon the internal timespec format TOD.
  */
 
diff --git a/cpukit/score/src/coretod.c b/cpukit/score/src/coretod.c
index 28df21f..bcdfa39 100644
--- a/cpukit/score/src/coretod.c
+++ b/cpukit/score/src/coretod.c
@@ -30,5 +30,4 @@ void _TOD_Handler_initialization(void)
 
   /* TOD has not been set */
   _TOD.is_set = false;
-  _TOD_Activate();
 }
diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c
index f2f743d..ff76581 100644
--- a/cpukit/score/src/coretodset.c
+++ b/cpukit/score/src/coretodset.c
@@ -31,7 +31,6 @@ void _TOD_Set_with_timestamp(
   Watchdog_Interval seconds_now;
 
   _Thread_Disable_dispatch();
-  _TOD_Deactivate();
 
   seconds_now = _TOD_Seconds_since_epoch();
 
@@ -44,6 +43,5 @@ void _TOD_Set_with_timestamp(
   _TOD.seconds_trigger = nanoseconds;
   _TOD.is_set = true;
 
-  _TOD_Activate();
   _Thread_Enable_dispatch();
 }




More information about the vc mailing list