summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-26 12:36:14 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-26 12:36:14 -0500
commit8f63fbee00fb80a0d688c4da6a9f6efd206146b7 (patch)
tree8a2d91dc3237bd30678679ac4f317bb45479bdc4
parent87c69f3abbdbb987d664159629b39625e822252d (diff)
shared/smp_stub.c: Correct bug
-rw-r--r--schedsim/shell/shared/smp_stub.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/schedsim/shell/shared/smp_stub.c b/schedsim/shell/shared/smp_stub.c
index 11cbc7a..cd73f4e 100644
--- a/schedsim/shell/shared/smp_stub.c
+++ b/schedsim/shell/shared/smp_stub.c
@@ -12,10 +12,6 @@
* http://www.rtems.com/license/LICENSE.
*/
-#if HAVE_CONFIG_H
- #include "config.h"
-#endif
-
#include <rtems.h>
#include <rtems/bspIo.h>
#include <stdlib.h>
@@ -75,8 +71,8 @@ void _CPU_SMP_Processor_event_receive( void )
uint32_t _CPU_SMP_Get_current_processor( void )
{
#if RTEMS_SMP
- return 0;
-#else
return Schedsim_Current_cpu;
+#else
+ return 0;
#endif
}