From 5eac967651866b0501593dcfea458452ef9e9128 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 17 May 2016 14:54:48 +0200 Subject: testsuites: Replace _Thread_Get() Replace _Thread_Get() with _Thread_Get_interrupt_disable() to avoid the Giant lock. Update #2555. --- testsuites/smptests/smpscheduler03/init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuites/smptests/smpscheduler03') diff --git a/testsuites/smptests/smpscheduler03/init.c b/testsuites/smptests/smpscheduler03/init.c index 1888048d28..54735001e6 100644 --- a/testsuites/smptests/smpscheduler03/init.c +++ b/testsuites/smptests/smpscheduler03/init.c @@ -100,12 +100,12 @@ static rtems_id start_task(rtems_task_priority prio) static Thread_Control *get_thread_by_id(rtems_id task_id) { - Objects_Locations location; + ISR_lock_Context lock_context; Thread_Control *thread; - thread = _Thread_Get(task_id, &location); - rtems_test_assert(location == OBJECTS_LOCAL); - _Thread_Enable_dispatch(); + thread = _Thread_Get_interrupt_disable(task_id, &lock_context); + rtems_test_assert(thread != NULL); + _ISR_lock_ISR_enable(&lock_context); return thread; } -- cgit v1.2.3