[PATCH 2/5] score: Delete _TOD_Activate and _TOD_Deactivate

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jul 31 13:15:11 UTC 2013


---
 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();
 }
-- 
1.7.7




More information about the devel mailing list