Changeset 87c69f3 in rtems-schedsim


Ignore:
Timestamp:
May 26, 2014, 5:15:11 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
8f63fbe
Parents:
24af09a
Message:

shared/smp_stub.c: Only one shared version now

Location:
schedsim/shell
Files:
1 deleted
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • schedsim/shell/schedsim_priority/Makefile.am

    r24af09a r87c69f3  
    55schedsim_priority_SOURCES += $(srcdir)/../shared/add_commands_stub.c
    66
    7 if HAS_SMP
    8 schedsim_priority_SOURCES += smp_stub.c
    9 endif
    107cpukitdir=@rtems_srcdir@/cpukit
    118schedsim_priority_CPPFLAGS  = -I$(top_builddir)/score/include
  • schedsim/shell/schedsim_smppriority/Makefile.am

    r24af09a r87c69f3  
    77SOURCES += $(srcdir)/../schedsim_smpsimple/main_dump_ready_tasks.c
    88SOURCES += $(srcdir)/../schedsim_smpsimple/printheir_executing.c
    9 SOURCES += $(srcdir)/../schedsim_smpsimple/smp_stub.c
    109SOURCES += $(srcdir)/../schedsim_smpsimple/wrap_thread_dispatch.c
    1110schedsim_smppriority_SOURCES = $(SOURCES)
  • schedsim/shell/schedsim_smppriority_affinity/Makefile.am

    r24af09a r87c69f3  
    77SOURCES += $(srcdir)/../schedsim_smpsimple/main_dump_ready_tasks.c
    88SOURCES += $(srcdir)/../schedsim_smpsimple/printheir_executing.c
    9 SOURCES += $(srcdir)/../schedsim_smpsimple/smp_stub.c
    109SOURCES += $(srcdir)/../schedsim_smpsimple/wrap_thread_dispatch.c
    1110schedsim_smppriority_affinity_SOURCES = $(SOURCES)
  • schedsim/shell/schedsim_smpsimple/Makefile.am

    r24af09a r87c69f3  
    77schedsim_smpsimple_SOURCES += main_dump_ready_tasks.c
    88schedsim_smpsimple_SOURCES += printheir_executing.c
    9 schedsim_smpsimple_SOURCES += smp_stub.c
    109schedsim_smpsimple_SOURCES += wrap_thread_dispatch.c
    1110
  • schedsim/shell/shared/Makefile.am

    r24af09a r87c69f3  
    5353libschedsim_a_SOURCES += shell_makeargs.c
    5454if HAS_SMP
     55libschedsim_a_SOURCES += smp_stub.c
    5556libschedsim_a_SOURCES += main_taskgetaffinity.c
    5657libschedsim_a_SOURCES += main_tasksetaffinity.c
  • schedsim/shell/shared/smp_stub.c

    r24af09a r87c69f3  
     1/**
     2 *  @file
     3 *  RTEMS SMP Support for Scheduler Simulator
     4 */
     5
    16/*
    2  *  RTEMS SMP Support for Single Core
    3  *
    4  *  COPYRIGHT (c) 1989-2013.
     7 *  COPYRIGHT (c) 1989-2014.
    58 *  On-Line Applications Research Corporation (OAR).
    69 *
     
    1013 */
    1114
     15#if HAVE_CONFIG_H
     16  #include "config.h"
     17#endif
     18
    1219#include <rtems.h>
    1320#include <rtems/bspIo.h>
    1421#include <stdlib.h>
    1522
    16 uint32_t Schedsim_Current_cpu;
    17 extern uint32_t Schedsim_Maximum_CPUs_From_Command_Line;
     23#if RTEMS_SMP
     24  uint32_t Schedsim_Current_cpu;
     25  extern uint32_t Schedsim_Maximum_CPUs_From_Command_Line;
     26#endif
    1827
    1928uint32_t _CPU_SMP_Initialize( void )
    2029{
     30#if RTEMS_SMP
    2131  /* return the number of CPUs */
    2232  return Schedsim_Maximum_CPUs_From_Command_Line;
     33#else
     34  return 1;
     35#endif
    2336}
    2437
     
    3851void _CPU_SMP_Processor_event_broadcast( void )
    3952{
     53#if RTEMS_SMP
    4054  Per_CPU_Control  *cpu = _Per_CPU_Get();
    4155  uint32_t         cpu_count = _SMP_Get_processor_count();
     
    5165    }
    5266  }
     67#endif
    5368}
    5469
     
    6075uint32_t _CPU_SMP_Get_current_processor( void )
    6176{
     77#if RTEMS_SMP
     78  return 0;
     79#else
    6280  return Schedsim_Current_cpu;
     81#endif
    6382}
Note: See TracChangeset for help on using the changeset viewer.