[rtems-schedsim commit] shared/smp_stub.c: Correct bug

Joel Sherrill joel at rtems.org
Mon May 26 18:18:36 UTC 2014


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Mon May 26 12:36:14 2014 -0500

shared/smp_stub.c: Correct bug

---

 schedsim/shell/shared/smp_stub.c |    8 ++------
 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
 }




More information about the vc mailing list