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/schedulercbsunblock.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/schedulercbsunblock.c')
-rw-r--r-- | cpukit/score/src/schedulercbsunblock.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cpukit/score/src/schedulercbsunblock.c b/cpukit/score/src/schedulercbsunblock.c index 54030e4eee..11465f2ba2 100644 --- a/cpukit/score/src/schedulercbsunblock.c +++ b/cpukit/score/src/schedulercbsunblock.c @@ -25,6 +25,7 @@ #include <rtems/score/watchdogimpl.h> void _Scheduler_CBS_Unblock( + Scheduler_Control *scheduler, Thread_Control *the_thread ) { @@ -32,7 +33,7 @@ void _Scheduler_CBS_Unblock( Scheduler_CBS_Server *serv_info; Priority_Control new_priority; - _Scheduler_EDF_Enqueue(the_thread); + _Scheduler_EDF_Enqueue( scheduler, the_thread ); /* TODO: flash critical section? */ sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info; @@ -73,8 +74,13 @@ void _Scheduler_CBS_Unblock( * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ - if ( _Scheduler_Is_priority_higher_than( the_thread->current_priority, - _Thread_Heir->current_priority)) { + if ( + _Scheduler_Is_priority_higher_than( + scheduler, + the_thread->current_priority, + _Thread_Heir->current_priority + ) + ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || the_thread->current_priority == 0 ) |