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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/taskwakeafter.c b/cpukit/rtems/src/taskwakeafter.c
index aaa5bf39c7..367b43acc6 100644
--- a/cpukit/rtems/src/taskwakeafter.c
+++ b/cpukit/rtems/src/taskwakeafter.c
@@ -37,7 +37,7 @@ rtems_status_code rtems_task_wake_after(
executing = _Thread_Executing;
if ( ticks == 0 ) {
- _Scheduler_Yield( executing );
+ _Scheduler_Yield( _Scheduler_Get( executing ), executing );
} else {
_Thread_Set_state( executing, STATES_DELAYING );
_Watchdog_Initialize(