diff options
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/nanosleep.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/sched_yield.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/nanosleep.c b/cpukit/posix/src/nanosleep.c index 38a6b8d6c8..0fec1e48e1 100644 --- a/cpukit/posix/src/nanosleep.c +++ b/cpukit/posix/src/nanosleep.c @@ -96,7 +96,7 @@ static inline int nanosleep_yield( struct timespec *rmtp ) executing = _Thread_Get_executing(); cpu_self = _Thread_Dispatch_disable(); _Thread_Yield( executing ); - _Thread_Dispatch_enable( cpu_self ); + _Thread_Dispatch_direct( cpu_self ); if ( rmtp ) { rmtp->tv_sec = 0; rmtp->tv_nsec = 0; diff --git a/cpukit/posix/src/sched_yield.c b/cpukit/posix/src/sched_yield.c index 7e056cef27..cbbcb34dd6 100644 --- a/cpukit/posix/src/sched_yield.c +++ b/cpukit/posix/src/sched_yield.c @@ -30,6 +30,6 @@ int sched_yield( void ) cpu_self = _Thread_Dispatch_disable(); _Thread_Yield( _Per_CPU_Get_executing( cpu_self ) ); - _Thread_Dispatch_enable( cpu_self ); + _Thread_Dispatch_direct( cpu_self ); return 0; } |