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.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/posix/src/sched_yield.c b/cpukit/posix/src/sched_yield.c
index 5293b199dc..e398fbf06e 100644
--- a/cpukit/posix/src/sched_yield.c
+++ b/cpukit/posix/src/sched_yield.c
@@ -21,16 +21,13 @@
#include <sched.h>
#include <rtems/score/percpu.h>
-#include <rtems/score/schedulerimpl.h>
#include <rtems/score/threaddispatch.h>
+#include <rtems/score/threadimpl.h>
int sched_yield( void )
{
- Thread_Control *executing;
-
_Thread_Disable_dispatch();
- executing = _Thread_Executing;
- _Scheduler_Yield( _Scheduler_Get( executing ), executing );
+ _Thread_Yield( _Thread_Executing );
_Thread_Enable_dispatch();
return 0;
}