From 33829ce155069462ba410d396da431386369ed08 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 13 May 2016 14:07:23 +0200 Subject: score: Avoid Giant lock for _Thread_Start() Update #2555. --- testsuites/tmtests/tm26/task1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuites/tmtests/tm26/task1.c') diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c index a46f042ac6..66bd4091b8 100644 --- a/testsuites/tmtests/tm26/task1.c +++ b/testsuites/tmtests/tm26/task1.c @@ -194,13 +194,13 @@ static void thread_unblock( Thread_Control *thread ) #endif } -static void thread_ready( Thread_Control *thread ) +static void thread_clear_state( Thread_Control *thread, States_Control state ) { #if defined( PREVENT_SMP_ASSERT_FAILURES ) _Thread_Disable_dispatch(); #endif - _Thread_Ready( thread ); + _Thread_Clear_state( thread, state ); #if defined( PREVENT_SMP_ASSERT_FAILURES ) _Thread_Unnest_dispatch(); @@ -559,7 +559,7 @@ void complete_test( void ) thread_set_state( Middle_tcb, STATES_WAITING_FOR_MESSAGE ); benchmark_timer_initialize(); - thread_ready( Middle_tcb ); + thread_clear_state( Middle_tcb, STATES_WAITING_FOR_MESSAGE ); thread_ready_time = benchmark_timer_read(); benchmark_timer_initialize(); -- cgit v1.2.3