diff options
Diffstat (limited to 'cpukit/rtems/src/taskwakewhen.c')
-rw-r--r-- | cpukit/rtems/src/taskwakewhen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/taskwakewhen.c b/cpukit/rtems/src/taskwakewhen.c index ac92ea875e..221a1b925f 100644 --- a/cpukit/rtems/src/taskwakewhen.c +++ b/cpukit/rtems/src/taskwakewhen.c @@ -49,7 +49,7 @@ rtems_status_code rtems_task_wake_when( return RTEMS_INVALID_CLOCK; cpu_self = _Thread_Dispatch_disable(); - executing = _Thread_Executing; + executing = _Per_CPU_Get_executing( cpu_self ); _Thread_Set_state( executing, STATES_WAITING_FOR_TIME ); _Thread_Wait_flags_set( executing, THREAD_WAIT_STATE_BLOCKED ); _Thread_Timer_insert_realtime( |