summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersimpleyield.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulersimpleyield.c')
-rw-r--r--cpukit/score/src/schedulersimpleyield.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/score/src/schedulersimpleyield.c b/cpukit/score/src/schedulersimpleyield.c
index 1d5d48c7e5..cfbe7a4cba 100644
--- a/cpukit/score/src/schedulersimpleyield.c
+++ b/cpukit/score/src/schedulersimpleyield.c
@@ -24,21 +24,19 @@
#include <rtems/score/thread.h>
#include <rtems/score/schedulersimple.h>
-void _Scheduler_simple_Yield( void )
+void _Scheduler_simple_Yield( Thread_Control *thread )
{
ISR_Level level;
- Thread_Control *executing;
- executing = _Thread_Executing;
_ISR_Disable( level );
- _Scheduler_simple_Ready_queue_requeue(&_Scheduler, executing);
+ _Scheduler_simple_Ready_queue_requeue( &_Scheduler, thread );
_ISR_Flash( level );
_Scheduler_simple_Schedule();
- if ( !_Thread_Is_heir( executing ) )
+ if ( !_Thread_Is_heir( thread ) )
_Thread_Dispatch_necessary = true;
_ISR_Enable( level );