[rtems commit] score: Remove _Stack_Ensure_minimum() call

Sebastian Huber sebh at rtems.org
Wed Feb 12 15:11:58 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Dec  7 16:30:50 2019 +0100

score: Remove _Stack_Ensure_minimum() call

This call is superfluous since _Thread_Initialize() will do this also.

Update #3835.

---

 cpukit/score/src/threadcreateidle.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c
index 65199f0..3e6f19e 100644
--- a/cpukit/score/src/threadcreateidle.c
+++ b/cpukit/score/src/threadcreateidle.c
@@ -21,7 +21,6 @@
 #include <rtems/score/threadimpl.h>
 #include <rtems/score/assert.h>
 #include <rtems/score/schedulerimpl.h>
-#include <rtems/score/stackimpl.h>
 #include <rtems/score/sysstate.h>
 #include <rtems/score/userextimpl.h>
 #include <rtems/config.h>
@@ -55,7 +54,7 @@ static void _Thread_Create_idle_for_CPU( Per_CPU_Control *cpu )
     idle,
     scheduler,
     NULL,        /* allocate the stack */
-    _Stack_Ensure_minimum( rtems_configuration_get_idle_task_stack_size() ),
+    rtems_configuration_get_idle_task_stack_size(),
     CPU_IDLE_TASK_IS_FP,
     _Scheduler_Map_priority( scheduler, scheduler->maximum_priority ),
     true,        /* preemptable */



More information about the vc mailing list