Changeset 246b81f in rtems-schedsim


Ignore:
Timestamp:
May 26, 2014, 5:55:18 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
968d2b2
Parents:
e340e96
Message:

dispatch is now a shared SMP command

Location:
schedsim/shell
Files:
6 edited
1 moved

Legend:

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

    re340e96 r246b81f  
    33SOURCES  = config.c
    44SOURCES += $(srcdir)/../schedsim_smpsimple/add_commands.c
    5 SOURCES += $(srcdir)/../schedsim_smpsimple/main_dispatch.c
    65SOURCES += $(srcdir)/../schedsim_smpsimple/main_dump_ready_tasks.c
    76SOURCES += $(srcdir)/../schedsim_smpsimple/printheir_executing.c
  • schedsim/shell/schedsim_smppriority_affinity/Makefile.am

    re340e96 r246b81f  
    33SOURCES  = config.c
    44SOURCES += $(srcdir)/../schedsim_smpsimple/add_commands.c
    5 SOURCES += $(srcdir)/../schedsim_smpsimple/main_dispatch.c
    65SOURCES += $(srcdir)/../schedsim_smpsimple/main_dump_ready_tasks.c
    76SOURCES += $(srcdir)/../schedsim_smpsimple/printheir_executing.c
  • schedsim/shell/schedsim_smpsimple/Makefile.am

    re340e96 r246b81f  
    33schedsim_smpsimple_SOURCES += add_commands.c
    44schedsim_smpsimple_SOURCES += config.c
    5 schedsim_smpsimple_SOURCES += main_dispatch.c
    65schedsim_smpsimple_SOURCES += main_dump_ready_tasks.c
    76schedsim_smpsimple_SOURCES += printheir_executing.c
  • schedsim/shell/schedsim_smpsimple/add_commands.c

    re340e96 r246b81f  
    1919
    2020extern int main_dump_ready_tasks(int argc, char **argv);
    21 extern int main_dispatch(int argc, char **argv);
    2221
    2322void add_commands(void)
     
    3231  );
    3332  assert( cmd );
    34 
    35   cmd = rtems_shell_add_cmd(
    36     "dispatch",
    37     "rtems",
    38     "",
    39     main_dispatch
    40   );
    41   assert( cmd );
    42 
    4333}
  • schedsim/shell/shared/Makefile.am

    re340e96 r246b81f  
    5555libschedsim_a_SOURCES += smp_stub.c
    5656libschedsim_a_SOURCES += main_currentcpu.c
     57libschedsim_a_SOURCES += main_dispatch.c
    5758libschedsim_a_SOURCES += main_taskgetaffinity.c
    5859libschedsim_a_SOURCES += main_tasksetaffinity.c
  • schedsim/shell/shared/commands.c

    re340e96 r246b81f  
    3636  extern rtems_shell_cmd_t rtems_shell_TASK_SET_AFFINITY_Command;
    3737  extern rtems_shell_cmd_t rtems_shell_CURRENT_CPU_Command;
     38  extern rtems_shell_cmd_t rtems_shell_DISPATCH_Command;
    3839#endif
    3940
     
    4950extern rtems_shell_cmd_t rtems_shell_TASK_HEIR_Command;
    5051extern rtems_shell_cmd_t rtems_shell_CPUS_Command;
     52
    5153
    5254rtems_shell_cmd_t *rtems_shell_Initial_commands[] = {
     
    6870    &rtems_shell_TASK_SET_AFFINITY_Command,
    6971    &rtems_shell_CURRENT_CPU_Command,
     72    &rtems_shell_DISPATCH_Command,
    7073  #endif
    7174
  • schedsim/shell/shared/main_dispatch.c

    re340e96 r246b81f  
     1/**
     2 *  @file
     3 *  @brief Invoke Dispatch on all Cores Command
     4 */
     5
    16/*
    2  *  COPYRIGHT (c) 1989-2013.
     7 *  COPYRIGHT (c) 1989-2014.
    38 *  On-Line Applications Research Corporation (OAR).
    49 *
     
    2530extern uint32_t Schedsim_Current_cpu;
    2631
    27 int main_dispatch(int argc, char **argv)
     32int rtems_shell_main_dispatch(int argc, char **argv)
    2833{
    2934  uint32_t   cpu;
     
    4247  return 0;
    4348}
     49
     50rtems_shell_cmd_t rtems_shell_DISPATCH_Command = {
     51  "dispatch",                    /* name */
     52  "dispatch",                    /* usage */
     53  "rtems",                       /* topic */
     54  rtems_shell_main_dispatch,     /* command */
     55  NULL,                          /* alias */
     56  NULL                           /* next */
     57};
Note: See TracChangeset for help on using the changeset viewer.