summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskwakeafter.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-17 16:15:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-24 09:29:59 +0200
commit028786263f8e23d85723e0751f132401cd4dbc44 (patch)
tree8108f4052bddab57c71158ba782d8c1922294c90 /cpukit/rtems/src/taskwakeafter.c
parentpsxclockrealtime01: New test (diff)
downloadrtems-028786263f8e23d85723e0751f132401cd4dbc44.tar.bz2
score: Add _Thread_Add_timeout_ticks()
Replace _Thread_Timer_insert_monotonic() with _Thread_Add_timeout_ticks(). Update #3117. Update #3182.
Diffstat (limited to 'cpukit/rtems/src/taskwakeafter.c')
-rw-r--r--cpukit/rtems/src/taskwakeafter.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cpukit/rtems/src/taskwakeafter.c b/cpukit/rtems/src/taskwakeafter.c
index 43bf612f61..cf118dcf16 100644
--- a/cpukit/rtems/src/taskwakeafter.c
+++ b/cpukit/rtems/src/taskwakeafter.c
@@ -41,12 +41,7 @@ rtems_status_code rtems_task_wake_after(
} else {
_Thread_Set_state( executing, STATES_WAITING_FOR_TIME );
_Thread_Wait_flags_set( executing, THREAD_WAIT_STATE_BLOCKED );
- _Thread_Timer_insert_monotonic(
- executing,
- cpu_self,
- _Thread_Timeout,
- ticks
- );
+ _Thread_Add_timeout_ticks( executing, cpu_self, ticks );
}
_Thread_Dispatch_direct( cpu_self );
return RTEMS_SUCCESSFUL;