summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/sched_yield.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/sched_yield.c')
-rw-r--r--cpukit/posix/src/sched_yield.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/sched_yield.c b/cpukit/posix/src/sched_yield.c
index 207cbb286a..d9e5d9b852 100644
--- a/cpukit/posix/src/sched_yield.c
+++ b/cpukit/posix/src/sched_yield.c
@@ -32,7 +32,7 @@
int sched_yield( void )
{
_Thread_Disable_dispatch();
- _Scheduler_Yield();
+ _Scheduler_Yield( _Thread_Executing );
_Thread_Enable_dispatch();
return 0;
}