summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-15 13:00:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-15 13:00:01 +0000
commit16ce86f9c8b4e976af9326ce71b4769e19ecf6d1 (patch)
tree558c896454b54a56cae471ef7bb440f14283948f /cpukit
parentchanged version to ss-20000811 (diff)
downloadrtems-16ce86f9c8b4e976af9326ce71b4769e19ecf6d1.tar.bz2
2000-08-15 Joel Sherrill <joel@OARcorp.com>
* posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get to use SuperCore _TOD_Current variable.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/posix/ChangeLog5
-rw-r--r--cpukit/posix/src/ptimer1.c15
2 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog
index 101734ce64..78c9625605 100644
--- a/cpukit/posix/ChangeLog
+++ b/cpukit/posix/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-15 Joel Sherrill <joel@OARcorp.com>
+
+ * posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get
+ to use SuperCore _TOD_Current variable.
+
2000-08-10 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: New file.
diff --git a/cpukit/posix/src/ptimer1.c b/cpukit/posix/src/ptimer1.c
index b29654e6d5..5f28d3cc92 100644
--- a/cpukit/posix/src/ptimer1.c
+++ b/cpukit/posix/src/ptimer1.c
@@ -260,8 +260,7 @@ rtems_timer_service_routine FIRE_TIMER_S (rtems_id timer, void *data)
/* Stores the time when the timer was started again */
- return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
- &timer_struct[timer_pos].time );
+ timer_struct[timer_pos].time = _TOD_Current;
/* The state has not to be actualized, because nothing modifies it */
@@ -394,12 +393,11 @@ int timer_create(
return 0;
- case RTEMS_INVALID_NAME : /* The assigned name is not valid*/
+ case RTEMS_INVALID_NAME : /* The assigned name is not valid */
PRINT_MSG_S ("ERROR: rtems create timer RTEMS_INVALID_NAME");
errno = EINVAL;
-
return (-1);
@@ -610,9 +608,7 @@ int timer_settime(
/* Stores the time in which the timer was started again */
- return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
- &timer_struct[timer_pos].time );
-
+ timer_struct[timer_pos].time = _TOD_Current;
return 0;
break;
@@ -686,8 +682,7 @@ int timer_settime(
/* Stores the time in which the timer was started again */
- return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
- &timer_struct[timer_pos].time );
+ timer_struct[timer_pos].time = _TOD_Current;
return 0;
@@ -780,7 +775,7 @@ int timer_gettime(
/* Reads the current time */
- return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD, &current_time );
+ current_time = _TOD_Current;
timer_pos = TIMER_POSITION_F ( timerid );