forked from Imagelibrary/rtems
score: Simplify _Thread_Create_idle_helper()
The _Thread_Initialize() function has nothing to do with thread dispatching it simply initializes the thread control.
This commit is contained in:
@@ -54,13 +54,6 @@ static inline void _Thread_Create_idle_helper(
|
|||||||
*/
|
*/
|
||||||
idle = _Thread_Internal_allocate();
|
idle = _Thread_Internal_allocate();
|
||||||
|
|
||||||
/*
|
|
||||||
* This is only called during initialization and we better be sure
|
|
||||||
* that when _Thread_Initialize unnests dispatch that we do not
|
|
||||||
* do anything stupid.
|
|
||||||
*/
|
|
||||||
_Thread_Disable_dispatch();
|
|
||||||
|
|
||||||
_Thread_Initialize(
|
_Thread_Initialize(
|
||||||
&_Thread_Internal_information,
|
&_Thread_Internal_information,
|
||||||
idle,
|
idle,
|
||||||
@@ -75,8 +68,6 @@ static inline void _Thread_Create_idle_helper(
|
|||||||
name
|
name
|
||||||
);
|
);
|
||||||
|
|
||||||
_Thread_Unnest_dispatch();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* WARNING!!! This is necessary to "kick" start the system and
|
* WARNING!!! This is necessary to "kick" start the system and
|
||||||
* MUST be done before _Thread_Start is invoked.
|
* MUST be done before _Thread_Start is invoked.
|
||||||
|
|||||||
Reference in New Issue
Block a user