[rtems-schedsim commit] schedsim: Add smp scenario support for a default core set.

Jennifer Averett jennifer at rtems.org
Fri May 16 19:47:47 UTC 2014


Module:    rtems-schedsim
Branch:    master
Commit:    fa450796f686541a8616a01a3399a93180e6addd
Changeset: http://git.rtems.org/rtems-schedsim/commit/?id=fa450796f686541a8616a01a3399a93180e6addd

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Fri May 16 14:42:50 2014 -0500

schedsim: Add smp scenario support for a default core set.

---

 schedsim/shell/shared/main_rtemsinit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/schedsim/shell/shared/main_rtemsinit.c b/schedsim/shell/shared/main_rtemsinit.c
index 063316a..ad2b14f 100644
--- a/schedsim/shell/shared/main_rtemsinit.c
+++ b/schedsim/shell/shared/main_rtemsinit.c
@@ -33,15 +33,15 @@ int rtems_shell_main_rtems_init(
 )
 {
 #if defined(RTEMS_SMP)
-  long cpus;
+  long cpus = 1;
 
   if ( argc >= 2 ) {
     if ( rtems_string_to_long(argv[1], &cpus, NULL, 0) ) {
       printf( "Number of CPUs argument (%s) is not a number\n", argv[1] );
       return -1;
     }
-    Schedsim_Maximum_CPUs_From_Command_Line = cpus;
   }
+  Schedsim_Maximum_CPUs_From_Command_Line = cpus;
 #endif
 
   //




More information about the vc mailing list