summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskwakeafter.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/taskwakeafter.c')
-rw-r--r--cpukit/rtems/src/taskwakeafter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/rtems/src/taskwakeafter.c b/cpukit/rtems/src/taskwakeafter.c
index 367b43acc6..88de6e51a8 100644
--- a/cpukit/rtems/src/taskwakeafter.c
+++ b/cpukit/rtems/src/taskwakeafter.c
@@ -20,7 +20,6 @@
#include <rtems/rtems/tasks.h>
#include <rtems/score/threadimpl.h>
-#include <rtems/score/schedulerimpl.h>
#include <rtems/score/watchdogimpl.h>
rtems_status_code rtems_task_wake_after(
@@ -37,7 +36,7 @@ rtems_status_code rtems_task_wake_after(
executing = _Thread_Executing;
if ( ticks == 0 ) {
- _Scheduler_Yield( _Scheduler_Get( executing ), executing );
+ _Thread_Yield( executing );
} else {
_Thread_Set_state( executing, STATES_DELAYING );
_Watchdog_Initialize(