diff options
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/nanosleep.c | 3 | ||||
-rw-r--r-- | cpukit/posix/src/sched_yield.c | 7 |
2 files changed, 3 insertions, 7 deletions
diff --git a/cpukit/posix/src/nanosleep.c b/cpukit/posix/src/nanosleep.c index ebaef33b26..54902b9c75 100644 --- a/cpukit/posix/src/nanosleep.c +++ b/cpukit/posix/src/nanosleep.c @@ -22,7 +22,6 @@ #include <errno.h> #include <rtems/seterr.h> -#include <rtems/score/schedulerimpl.h> #include <rtems/score/threadimpl.h> #include <rtems/score/timespec.h> #include <rtems/score/watchdogimpl.h> @@ -65,7 +64,7 @@ int nanosleep( if ( !ticks ) { _Thread_Disable_dispatch(); executing = _Thread_Executing; - _Scheduler_Yield( _Scheduler_Get( executing ), executing ); + _Thread_Yield( executing ); _Thread_Enable_dispatch(); if ( rmtp ) { rmtp->tv_sec = 0; 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; } |