[rtems commit] score: Simplify _Thread_Create_idle_helper()

Sebastian Huber sebh at rtems.org
Fri Jun 7 15:02:23 UTC 2013


Module:    rtems
Branch:    master
Commit:    17ce1034cff3ac91a9cfab30a117eb46984d2372
Changeset: http://git.rtems.org/rtems/commit/?id=17ce1034cff3ac91a9cfab30a117eb46984d2372

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun  5 12:00:02 2013 +0200

score: Simplify _Thread_Create_idle_helper()

The _Thread_Initialize() function has nothing to do with thread
dispatching it simply initializes the thread control.

---

 cpukit/score/src/threadcreateidle.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c
index cc4282e..e4581c8 100644
--- a/cpukit/score/src/threadcreateidle.c
+++ b/cpukit/score/src/threadcreateidle.c
@@ -54,13 +54,6 @@ static inline void _Thread_Create_idle_helper(
    */
   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_Internal_information,
     idle,
@@ -75,8 +68,6 @@ static inline void _Thread_Create_idle_helper(
     name
   );
 
-  _Thread_Unnest_dispatch();
-
   /*
    *  WARNING!!! This is necessary to "kick" start the system and
    *             MUST be done before _Thread_Start is invoked.




More information about the vc mailing list