summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadyield.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadyield.c')
-rw-r--r--cpukit/score/src/threadyield.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadyield.c b/cpukit/score/src/threadyield.c
index 7f1c175b4a..cfd8118665 100644
--- a/cpukit/score/src/threadyield.c
+++ b/cpukit/score/src/threadyield.c
@@ -31,11 +31,11 @@ void _Thread_Yield( Thread_Control *executing )
{
ISR_lock_Context lock_context;
- _Scheduler_Acquire( executing, &lock_context );
+ _Thread_State_acquire( executing, &lock_context );
if ( _States_Is_ready( executing->current_state ) ) {
_Scheduler_Yield( executing );
}
- _Scheduler_Release( executing, &lock_context );
+ _Thread_State_release( executing, &lock_context );
}