diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-16 14:42:50 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-16 14:42:50 -0500 |
commit | fa450796f686541a8616a01a3399a93180e6addd (patch) | |
tree | 43d974a0b69102730946027ca171c47bca3770d0 | |
parent | rtems: Account for rtems scheduler modifications (diff) | |
download | rtems-schedsim-fa450796f686541a8616a01a3399a93180e6addd.tar.bz2 |
schedsim: Add smp scenario support for a default core set.
-rw-r--r-- | 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 // |