diff options
Diffstat (limited to 'cpukit/rtems/src/taskwakeafter.c')
-rw-r--r-- | cpukit/rtems/src/taskwakeafter.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/rtems/src/taskwakeafter.c b/cpukit/rtems/src/taskwakeafter.c index b7f328f5bc..fa5f6f4eed 100644 --- a/cpukit/rtems/src/taskwakeafter.c +++ b/cpukit/rtems/src/taskwakeafter.c @@ -41,13 +41,12 @@ rtems_status_code rtems_task_wake_after( } else { _Thread_Set_state( executing, STATES_DELAYING ); _Thread_Wait_flags_set( executing, THREAD_WAIT_STATE_BLOCKED ); - _Watchdog_Initialize( - &executing->Timer, + _Thread_Timer_insert_relative( + executing, + cpu_self, _Thread_Timeout, - 0, - executing + ticks ); - _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Dispatch_enable( cpu_self ); return RTEMS_SUCCESSFUL; |