diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-03 15:03:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-04 11:01:18 +0200 |
commit | 24934e36e2513f972510d7c746103be1f766dc6a (patch) | |
tree | 66e3c8840cec6c1262f142e25ec545926140dbf9 /cpukit/score/src/schedulersimpleyield.c | |
parent | score: Add and use Scheduler_simple_Control (diff) | |
download | rtems-24934e36e2513f972510d7c746103be1f766dc6a.tar.bz2 |
score: Add scheduler control to scheduler ops
Scheduler operations must be free of a global scheduler context to
enable partitioned/clustered scheduling.
Diffstat (limited to 'cpukit/score/src/schedulersimpleyield.c')
-rw-r--r-- | cpukit/score/src/schedulersimpleyield.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/score/src/schedulersimpleyield.c b/cpukit/score/src/schedulersimpleyield.c index 114071b556..664fa31c76 100644 --- a/cpukit/score/src/schedulersimpleyield.c +++ b/cpukit/score/src/schedulersimpleyield.c @@ -22,17 +22,20 @@ #include <rtems/score/isr.h> #include <rtems/score/threadimpl.h> -void _Scheduler_simple_Yield( Thread_Control *thread ) +void _Scheduler_simple_Yield( + Scheduler_Control *scheduler, + Thread_Control *the_thread +) { ISR_Level level; _ISR_Disable( level ); - _Scheduler_simple_Ready_queue_requeue( &_Scheduler, thread ); + _Scheduler_simple_Ready_queue_requeue( scheduler, the_thread ); _ISR_Flash( level ); - _Scheduler_simple_Schedule_body( thread, false ); + _Scheduler_simple_Schedule_body( scheduler, the_thread, false ); _ISR_Enable( level ); } |