diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-29 15:32:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-29 15:32:18 +0000 |
commit | 894d01c2d401bbd472ddec9f025ca14b25ec4e5d (patch) | |
tree | 123e7ad38a5a22183c6e701452ed01833afa62e0 /cpukit/rtems/src/timerreset.c | |
parent | 2001-03-29 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-894d01c2d401bbd472ddec9f025ca14b25ec4e5d.tar.bz2 |
2001-03-29 Joel Sherrill <joel@OARcorp.com>
* Per PR147 addressed problems when reseting and inserting a timer
into a timer chain that did not honor time passage since the last
time the timer server was scheduled and the new insertion.
* include/rtems/rtems/timer.h, src/timerreset.c, src/timerserver.c,
src/timerserverfireafter.c, src/timerserverfirewhen.c: Broke up
the "reset server" routine into a set of very specific routines
that allowed the server to be unscheduled, timer chains to be
"synchronized" with the current time before inserting a new timer.
Diffstat (limited to 'cpukit/rtems/src/timerreset.c')
-rw-r--r-- | cpukit/rtems/src/timerreset.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/rtems/src/timerreset.c b/cpukit/rtems/src/timerreset.c index 33a45e1fc3..796fb5ecfb 100644 --- a/cpukit/rtems/src/timerreset.c +++ b/cpukit/rtems/src/timerreset.c @@ -57,8 +57,11 @@ rtems_status_code rtems_timer_reset( _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); break; case TIMER_INTERVAL_ON_TASK: + _Timer_Server_stop_ticks_timer(); _Watchdog_Remove( &the_timer->Ticker ); + _Timer_Server_process_ticks_chain(); _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); + _Timer_Server_reset_ticks_timer(); break; case TIMER_TIME_OF_DAY: case TIMER_TIME_OF_DAY_ON_TASK: |