From 631b3c8967a329cdd53e54365e4e4c0aa93a4251 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 23 May 2016 11:40:18 +0200 Subject: score: Move thread queue MP callout to context Drop the multiprocessing (MP) dependent callout parameter from the thread queue extract, dequeue, flush and unblock methods. Merge this parameter with the lock context into new structure Thread_queue_Context. This helps to gets rid of the conditionally compiled method call helpers. --- cpukit/score/src/corebarrierrelease.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'cpukit/score/src/corebarrierrelease.c') diff --git a/cpukit/score/src/corebarrierrelease.c b/cpukit/score/src/corebarrierrelease.c index c9c80f47dd..8a23856d53 100644 --- a/cpukit/score/src/corebarrierrelease.c +++ b/cpukit/score/src/corebarrierrelease.c @@ -21,13 +21,10 @@ #include -uint32_t _CORE_barrier_Do_surrender( +uint32_t _CORE_barrier_Do_flush( CORE_barrier_Control *the_barrier, Thread_queue_Flush_filter filter, -#if defined(RTEMS_MULTIPROCESSING) - Thread_queue_MP_callout mp_callout, -#endif - ISR_lock_Context *lock_context + Thread_queue_Context *queue_context ) { the_barrier->number_of_waiting_threads = 0; @@ -35,7 +32,6 @@ uint32_t _CORE_barrier_Do_surrender( &the_barrier->Wait_queue.Queue, CORE_BARRIER_TQ_OPERATIONS, filter, - mp_callout, - lock_context + queue_context ); } -- cgit v1.2.3