From a49dfb16cc20a716d4b641ac326fcc8ab828e3c7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 8 Feb 2018 10:46:11 +0100 Subject: rtems: Use _Per_CPU_Get_executing() --- cpukit/rtems/src/taskwakewhen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/rtems/src/taskwakewhen.c') 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( -- cgit v1.2.3