From 24934e36e2513f972510d7c746103be1f766dc6a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 3 Apr 2014 15:03:35 +0200 Subject: score: Add scheduler control to scheduler ops Scheduler operations must be free of a global scheduler context to enable partitioned/clustered scheduling. --- cpukit/score/src/schedulerpriorityunblock.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpukit/score/src/schedulerpriorityunblock.c') diff --git a/cpukit/score/src/schedulerpriorityunblock.c b/cpukit/score/src/schedulerpriorityunblock.c index f69c1e2689..c84111ca26 100644 --- a/cpukit/score/src/schedulerpriorityunblock.c +++ b/cpukit/score/src/schedulerpriorityunblock.c @@ -23,12 +23,14 @@ #include void _Scheduler_priority_Unblock ( - Thread_Control *the_thread + Scheduler_Control *base, + Thread_Control *the_thread ) { - Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance(); + Scheduler_priority_Control *self = + _Scheduler_priority_Self_from_base( base ); - _Scheduler_priority_Ready_queue_enqueue( the_thread, &scheduler->Bit_map ); + _Scheduler_priority_Ready_queue_enqueue( the_thread, &self->Bit_map ); /* TODO: flash critical section? */ -- cgit v1.2.3