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. --- testsuites/tmtests/tm26/task1.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'testsuites/tmtests/tm26/task1.c') diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c index da37eee73e..68cb246cd0 100644 --- a/testsuites/tmtests/tm26/task1.c +++ b/testsuites/tmtests/tm26/task1.c @@ -477,9 +477,10 @@ rtems_task Floating_point_task_2( void complete_test( void ) { - uint32_t index; - rtems_id task_id; - ISR_lock_Context lock_context; + uint32_t index; + rtems_id task_id; + ISR_lock_Context lock_context; + Thread_queue_Context queue_context; benchmark_timer_initialize(); thread_resume( Middle_tcb ); @@ -513,8 +514,8 @@ void complete_test( void ) benchmark_timer_initialize(); for ( index=1 ; index <= OPERATION_COUNT ; index++ ) { - (void) _Semaphore_Get( Semaphore_id, &lock_context ); - _ISR_lock_ISR_enable( &lock_context ); + (void) _Semaphore_Get( Semaphore_id, &queue_context, NULL ); + _ISR_lock_ISR_enable( &queue_context.Lock_context ); } semaphore_get_time = benchmark_timer_read(); -- cgit v1.2.3