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. --- cpukit/score/include/rtems/score/threadimpl.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'cpukit/score/include/rtems/score/threadimpl.h') diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index cdd7f9b300..6f97ca9866 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -187,7 +187,8 @@ bool _Thread_Initialize( */ bool _Thread_Start( Thread_Control *the_thread, - const Thread_Entry_information *entry + const Thread_Entry_information *entry, + ISR_lock_Context *lock_context ); void _Thread_Restart_self( @@ -287,21 +288,6 @@ States_Control _Thread_Set_state( States_Control state ); -/** - * @brief Clears all thread states. - * - * In case the previous state is a non-ready state, then the thread is - * unblocked by the scheduler. - * - * @param[in] the_thread The thread. - */ -RTEMS_INLINE_ROUTINE void _Thread_Ready( - Thread_Control *the_thread -) -{ - _Thread_Clear_state( the_thread, STATES_ALL_SET ); -} - /** * @brief Initializes enviroment for a thread. * -- cgit v1.2.3