summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/timerserverfireafter.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-03 20:58:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-03 20:58:29 +0000
commit109ace3a1f0f6f26d974a1ed8e9595aa0eef0885 (patch)
tree39f88b77b8ac4bd91bfb3ac685be86e14ad9b1fb /cpukit/rtems/src/timerserverfireafter.c
parent2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-109ace3a1f0f6f26d974a1ed8e9595aa0eef0885.tar.bz2
2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1347/cpukit * rtems/include/rtems/rtems/timer.h, rtems/src/rtemstimer.c, rtems/src/timerreset.c, rtems/src/timerserver.c, rtems/src/timerserverfireafter.c, rtems/src/timerserverfirewhen.c, score/Makefile.am, score/include/rtems/score/watchdog.h: Rework Timer Server to ensure that the context allows for blocking, allocating memory, and acquiring semaphores and mutexes. * score/src/watchdogadjusttochain.c: New file.
Diffstat (limited to 'cpukit/rtems/src/timerserverfireafter.c')
-rw-r--r--cpukit/rtems/src/timerserverfireafter.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/rtems/src/timerserverfireafter.c b/cpukit/rtems/src/timerserverfireafter.c
index 568f53be1e..d23edee60c 100644
--- a/cpukit/rtems/src/timerserverfireafter.c
+++ b/cpukit/rtems/src/timerserverfireafter.c
@@ -92,10 +92,12 @@ rtems_status_code rtems_timer_server_fire_after(
the_timer->Ticker.initial = ticks;
_ISR_Enable( level );
- _Timer_Server_stop_ticks_timer();
- _Timer_Server_process_ticks_chain();
- _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker );
- _Timer_Server_reset_ticks_timer();
+ /*
+ * _Timer_Server_schedule_operation != NULL because we checked that
+ * _Timer_Server was != NULL above. Both are set at the same time.
+ */
+
+ (*_Timer_Server_schedule_operation)( the_timer );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;