summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2014-05-16 14:42:50 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2014-05-16 14:42:50 -0500
commitfa450796f686541a8616a01a3399a93180e6addd (patch)
tree43d974a0b69102730946027ca171c47bca3770d0
parentrtems: Account for rtems scheduler modifications (diff)
downloadrtems-schedsim-fa450796f686541a8616a01a3399a93180e6addd.tar.bz2
schedsim: Add smp scenario support for a default core set.
-rw-r--r--schedsim/shell/shared/main_rtemsinit.c4
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
//