Changeset 5bbc204 in rtems


Ignore:
Timestamp:
Mar 16, 2011, 4:33:04 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
18b8ac71
Parents:
0118ed6
Message:

2011-03-16 Jennifer Averett <jennifer.averett@…>

PR 1743/cpu

  • Makefile.am, configure.ac, spsize/size.c: Add Simple Priority Scheduler as complement to existing Deterministic Priority Scheduler. This scheduler serves both as an example and as a lighter weight implementation for smaller systems.
  • spsimplesched01/.cvsignore, spsimplesched01/Makefile.am, spsimplesched01/init.c, spsimplesched01/spsimplesched01.doc, spsimplesched01/spsimplesched01.scn, spsimplesched02/.cvsignore, spsimplesched02/Makefile.am, spsimplesched02/init.c, spsimplesched02/spsimplesched02.doc, spsimplesched02/spsimplesched02.scn, spsimplesched03/.cvsignore, spsimplesched03/Makefile.am, spsimplesched03/init.c, spsimplesched03/spsimplesched03.doc, spsimplesched03/spsimplesched03.scn: New files.
Location:
testsuites/sptests
Files:
15 added
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r0118ed6 r5bbc204  
     12011-03-16      Jennifer Averett <jennifer.averett@OARcorp.com>
     2
     3        PR 1743/cpu
     4        * Makefile.am, configure.ac, spsize/size.c: Add Simple Priority
     5        Scheduler as complement to existing Deterministic Priority Scheduler.
     6        This scheduler serves both as an example and as a lighter weight
     7        implementation for smaller systems.
     8        * spsimplesched01/.cvsignore, spsimplesched01/Makefile.am,
     9        spsimplesched01/init.c, spsimplesched01/spsimplesched01.doc,
     10        spsimplesched01/spsimplesched01.scn, spsimplesched02/.cvsignore,
     11        spsimplesched02/Makefile.am, spsimplesched02/init.c,
     12        spsimplesched02/spsimplesched02.doc,
     13        spsimplesched02/spsimplesched02.scn, spsimplesched03/.cvsignore,
     14        spsimplesched03/Makefile.am, spsimplesched03/init.c,
     15        spsimplesched03/spsimplesched03.doc,
     16        spsimplesched03/spsimplesched03.scn: New files.
     17
    1182011-03-11      Joel Sherrill <joel.sherrilL@OARcorp.com>
    219
  • testsuites/sptests/Makefile.am

    r0118ed6 r5bbc204  
    2929    spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12 \
    3030    spintrcritical13 spintrcritical14 spintrcritical15 spintrcritical16 \
    31     spintrcritical17 spmkdir spmountmgr01 spheapprot
     31    spintrcritical17 spmkdir spmountmgr01 spheapprot \
     32    spsimplesched01 spsimplesched02 spsimplesched03
    3233
    3334DIST_SUBDIRS = $(SUBDIRS) spfatal_support spintrcritical_support
  • testsuites/sptests/configure.ac

    r0118ed6 r5bbc204  
    161161spprintk/Makefile
    162162spprivenv01/Makefile
     163spsimplesched01/Makefile
     164spsimplesched02/Makefile
     165spsimplesched03/Makefile
    163166spsize/Makefile
    164167spstkalloc/Makefile
  • testsuites/sptests/spsize/size.c

    r0118ed6 r5bbc204  
    7373#define  NAME_PTR_SIZE     8    /* size of name and pointer table entries */
    7474
    75 #if CONFIGURE_SCHEDULER_POLICY == _Scheduler_PRIORITY
    76   #include <rtems/score/prioritybitmap.h>
    77 
    78   /* Priority scheduling uninitialized (globals) consumption */
    79   #define SCHEDULER_OVHD          ((sizeof _Scheduler)              + \
    80                                    (sizeof _Priority_Major_bit_map) + \
    81                                    (sizeof _Priority_Bit_map))
    82 
    83   /* Priority scheduling per-thread consumption. Gets
    84    * included in the PER_TASK consumption. */
    85   #define SCHEDULER_TASK_WKSP     (sizeof(Scheduler_priority_Per_thread))
    86 
    87   /* Priority scheduling workspace consumption
    88    *
    89    * Include allocation of ready queue.  Pointers are already counted by
    90    * including _Scheduler in SCHEDULER_OVHD.
    91    */
    92   #define  SCHEDULER_WKSP_SIZE  \
     75/*
     76 *  This assumes the default Priority Scheduler
     77 */
     78#include <rtems/score/prioritybitmap.h>
     79#include <rtems/score/schedulerpriority.h>
     80
     81/* Priority scheduling uninitialized (globals) consumption */
     82#define SCHEDULER_OVHD     ((sizeof _Scheduler)              + \
     83                           (sizeof _Priority_Major_bit_map) + \
     84                           (sizeof _Priority_Bit_map))
     85
     86/* Priority scheduling per-thread consumption. Gets
     87 * included in the PER_TASK consumption.
     88 */
     89#define SCHEDULER_TASK_WKSP     (sizeof(Scheduler_priority_Per_thread))
     90
     91/* Priority scheduling workspace consumption
     92 *
     93 * Include allocation of ready queue.  Pointers are already counted by
     94 * including _Scheduler in SCHEDULER_OVHD.
     95 */
     96#define SCHEDULER_WKSP_SIZE  \
    9397    ((RTEMS_MAXIMUM_PRIORITY + 1) * sizeof(Chain_Control ))
    94 #endif
     98/****** END OF MEMORY USAGE OF DEFAULT PRIORITY SCHEDULER ******/
    9599
    96100#define PER_TASK      \
Note: See TracChangeset for help on using the changeset viewer.