Changeset e9ee2f0 in rtems


Ignore:
Timestamp:
05/13/14 12:36:57 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
3730a07f
Parents:
c6522a65
git-author:
Sebastian Huber <sebastian.huber@…> (05/13/14 12:36:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/14/14 12:46:20)
Message:

score: Capitalize SMP acronym

Location:
cpukit/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/schedulersimplesmp.h

    rc6522a65 re9ee2f0  
    6060#define SCHEDULER_SIMPLE_SMP_ENTRY_POINTS \
    6161  { \
    62     _Scheduler_simple_smp_Initialize, \
    63     _Scheduler_simple_smp_Schedule, \
    64     _Scheduler_simple_smp_Yield, \
    65     _Scheduler_simple_smp_Block, \
    66     _Scheduler_simple_smp_Enqueue_priority_fifo, \
    67     _Scheduler_simple_smp_Allocate, \
     62    _Scheduler_simple_SMP_Initialize, \
     63    _Scheduler_simple_SMP_Schedule, \
     64    _Scheduler_simple_SMP_Yield, \
     65    _Scheduler_simple_SMP_Block, \
     66    _Scheduler_simple_SMP_Enqueue_priority_fifo, \
     67    _Scheduler_simple_SMP_Allocate, \
    6868    _Scheduler_default_Free, \
    6969    _Scheduler_default_Update, \
    70     _Scheduler_simple_smp_Enqueue_priority_fifo, \
    71     _Scheduler_simple_smp_Enqueue_priority_lifo, \
    72     _Scheduler_simple_smp_Extract, \
     70    _Scheduler_simple_SMP_Enqueue_priority_fifo, \
     71    _Scheduler_simple_SMP_Enqueue_priority_lifo, \
     72    _Scheduler_simple_SMP_Extract, \
    7373    _Scheduler_priority_Priority_compare, \
    7474    _Scheduler_default_Release_job, \
    7575    _Scheduler_default_Tick, \
    76     _Scheduler_simple_smp_Start_idle, \
     76    _Scheduler_simple_SMP_Start_idle, \
    7777    _Scheduler_default_Get_affinity, \
    7878    _Scheduler_default_Set_affinity \
    7979  }
    8080
    81 void _Scheduler_simple_smp_Initialize( const Scheduler_Control *scheduler );
     81void _Scheduler_simple_SMP_Initialize( const Scheduler_Control *scheduler );
    8282
    83 bool _Scheduler_simple_smp_Allocate(
     83bool _Scheduler_simple_SMP_Allocate(
    8484  const Scheduler_Control *scheduler,
    8585  Thread_Control          *the_thread
    8686);
    8787
    88 void _Scheduler_simple_smp_Block(
     88void _Scheduler_simple_SMP_Block(
    8989  const Scheduler_Control *scheduler,
    9090  Thread_Control *thread
    9191);
    9292
    93 void _Scheduler_simple_smp_Enqueue_priority_fifo(
     93void _Scheduler_simple_SMP_Enqueue_priority_fifo(
    9494  const Scheduler_Control *scheduler,
    9595  Thread_Control *thread
    9696);
    9797
    98 void _Scheduler_simple_smp_Enqueue_priority_lifo(
     98void _Scheduler_simple_SMP_Enqueue_priority_lifo(
    9999  const Scheduler_Control *scheduler,
    100100  Thread_Control *thread
    101101);
    102102
    103 void _Scheduler_simple_smp_Extract(
     103void _Scheduler_simple_SMP_Extract(
    104104  const Scheduler_Control *scheduler,
    105105  Thread_Control *thread
    106106);
    107107
    108 void _Scheduler_simple_smp_Yield(
     108void _Scheduler_simple_SMP_Yield(
    109109  const Scheduler_Control *scheduler,
    110110  Thread_Control *thread
    111111);
    112112
    113 void _Scheduler_simple_smp_Schedule(
     113void _Scheduler_simple_SMP_Schedule(
    114114  const Scheduler_Control *scheduler,
    115115  Thread_Control *thread
    116116);
    117117
    118 void _Scheduler_simple_smp_Start_idle(
     118void _Scheduler_simple_SMP_Start_idle(
    119119  const Scheduler_Control *scheduler,
    120120  Thread_Control *thread,
  • cpukit/score/src/schedulersimplesmp.c

    rc6522a65 re9ee2f0  
    3636}
    3737
    38 void _Scheduler_simple_smp_Initialize( const Scheduler_Control *scheduler )
     38void _Scheduler_simple_SMP_Initialize( const Scheduler_Control *scheduler )
    3939{
    4040  Scheduler_simple_SMP_Context *self =
     
    4545}
    4646
    47 bool _Scheduler_simple_smp_Allocate(
     47bool _Scheduler_simple_SMP_Allocate(
    4848  const Scheduler_Control *scheduler,
    4949  Thread_Control          *the_thread
     
    5757}
    5858
    59 static Thread_Control *_Scheduler_simple_smp_Get_highest_ready(
     59static Thread_Control *_Scheduler_simple_SMP_Get_highest_ready(
    6060  Scheduler_SMP_Context *smp_base
    6161)
     
    7373}
    7474
    75 static void _Scheduler_simple_smp_Move_from_scheduled_to_ready(
     75static void _Scheduler_simple_SMP_Move_from_scheduled_to_ready(
    7676  Scheduler_SMP_Context *smp_base,
    7777  Thread_Control *scheduled_to_ready
     
    8888}
    8989
    90 static void _Scheduler_simple_smp_Move_from_ready_to_scheduled(
     90static void _Scheduler_simple_SMP_Move_from_ready_to_scheduled(
    9191  Scheduler_SMP_Context *smp_base,
    9292  Thread_Control *ready_to_scheduled
     
    100100}
    101101
    102 static void _Scheduler_simple_smp_Insert_ready_lifo(
     102static void _Scheduler_simple_SMP_Insert_ready_lifo(
    103103  Scheduler_SMP_Context *smp_base,
    104104  Thread_Control *thread
     
    115115}
    116116
    117 static void _Scheduler_simple_smp_Insert_ready_fifo(
     117static void _Scheduler_simple_SMP_Insert_ready_fifo(
    118118  Scheduler_SMP_Context *smp_base,
    119119  Thread_Control *thread
     
    130130}
    131131
    132 static void _Scheduler_simple_smp_Do_extract(
     132static void _Scheduler_simple_SMP_Do_extract(
    133133  Scheduler_SMP_Context *smp_base,
    134134  Thread_Control *thread
     
    148148}
    149149
    150 void _Scheduler_simple_smp_Block(
     150void _Scheduler_simple_SMP_Block(
    151151  const Scheduler_Control *scheduler,
    152152  Thread_Control *thread
     
    159159    &self->Base,
    160160    thread,
    161     _Scheduler_simple_smp_Do_extract,
    162     _Scheduler_simple_smp_Get_highest_ready,
    163     _Scheduler_simple_smp_Move_from_ready_to_scheduled
    164   );
    165 }
    166 
    167 static void _Scheduler_simple_smp_Enqueue_ordered(
     161    _Scheduler_simple_SMP_Do_extract,
     162    _Scheduler_simple_SMP_Get_highest_ready,
     163    _Scheduler_simple_SMP_Move_from_ready_to_scheduled
     164  );
     165}
     166
     167static void _Scheduler_simple_SMP_Enqueue_ordered(
    168168  Scheduler_SMP_Context *smp_base,
    169169  Thread_Control *thread,
     
    177177    thread,
    178178    order,
    179     _Scheduler_simple_smp_Get_highest_ready,
     179    _Scheduler_simple_SMP_Get_highest_ready,
    180180    insert_ready,
    181181    insert_scheduled,
    182     _Scheduler_simple_smp_Move_from_ready_to_scheduled,
    183     _Scheduler_simple_smp_Move_from_scheduled_to_ready
    184   );
    185 }
    186 
    187 void _Scheduler_simple_smp_Enqueue_priority_lifo(
    188   const Scheduler_Control *scheduler,
    189   Thread_Control *thread
    190 )
    191 {
    192   Scheduler_simple_SMP_Context *self =
    193     _Scheduler_simple_SMP_Get_context( scheduler );
    194 
    195   _Scheduler_simple_smp_Enqueue_ordered(
     182    _Scheduler_simple_SMP_Move_from_ready_to_scheduled,
     183    _Scheduler_simple_SMP_Move_from_scheduled_to_ready
     184  );
     185}
     186
     187void _Scheduler_simple_SMP_Enqueue_priority_lifo(
     188  const Scheduler_Control *scheduler,
     189  Thread_Control *thread
     190)
     191{
     192  Scheduler_simple_SMP_Context *self =
     193    _Scheduler_simple_SMP_Get_context( scheduler );
     194
     195  _Scheduler_simple_SMP_Enqueue_ordered(
    196196    &self->Base,
    197197    thread,
    198198    _Scheduler_simple_Insert_priority_lifo_order,
    199     _Scheduler_simple_smp_Insert_ready_lifo,
     199    _Scheduler_simple_SMP_Insert_ready_lifo,
    200200    _Scheduler_SMP_Insert_scheduled_lifo
    201201  );
    202202}
    203203
    204 void _Scheduler_simple_smp_Enqueue_priority_fifo(
    205   const Scheduler_Control *scheduler,
    206   Thread_Control *thread
    207 )
    208 {
    209   Scheduler_simple_SMP_Context *self =
    210     _Scheduler_simple_SMP_Get_context( scheduler );
    211 
    212   _Scheduler_simple_smp_Enqueue_ordered(
     204void _Scheduler_simple_SMP_Enqueue_priority_fifo(
     205  const Scheduler_Control *scheduler,
     206  Thread_Control *thread
     207)
     208{
     209  Scheduler_simple_SMP_Context *self =
     210    _Scheduler_simple_SMP_Get_context( scheduler );
     211
     212  _Scheduler_simple_SMP_Enqueue_ordered(
    213213    &self->Base,
    214214    thread,
    215215    _Scheduler_simple_Insert_priority_fifo_order,
    216     _Scheduler_simple_smp_Insert_ready_fifo,
     216    _Scheduler_simple_SMP_Insert_ready_fifo,
    217217    _Scheduler_SMP_Insert_scheduled_fifo
    218218  );
    219219}
    220220
    221 void _Scheduler_simple_smp_Extract(
     221void _Scheduler_simple_SMP_Extract(
    222222  const Scheduler_Control *scheduler,
    223223  Thread_Control *thread
     
    230230    &self->Base,
    231231    thread,
    232     _Scheduler_simple_smp_Do_extract
    233   );
    234 }
    235 
    236 void _Scheduler_simple_smp_Yield(
     232    _Scheduler_simple_SMP_Do_extract
     233  );
     234}
     235
     236void _Scheduler_simple_SMP_Yield(
    237237  const Scheduler_Control *scheduler,
    238238  Thread_Control *thread
     
    243243  _ISR_Disable( level );
    244244
    245   _Scheduler_simple_smp_Extract( scheduler, thread );
    246   _Scheduler_simple_smp_Enqueue_priority_fifo( scheduler, thread );
     245  _Scheduler_simple_SMP_Extract( scheduler, thread );
     246  _Scheduler_simple_SMP_Enqueue_priority_fifo( scheduler, thread );
    247247
    248248  _ISR_Enable( level );
    249249}
    250250
    251 void _Scheduler_simple_smp_Schedule(
     251void _Scheduler_simple_SMP_Schedule(
    252252  const Scheduler_Control *scheduler,
    253253  Thread_Control *thread
     
    260260    &self->Base,
    261261    thread,
    262     _Scheduler_simple_smp_Get_highest_ready,
    263     _Scheduler_simple_smp_Move_from_ready_to_scheduled
    264   );
    265 }
    266 
    267 void _Scheduler_simple_smp_Start_idle(
     262    _Scheduler_simple_SMP_Get_highest_ready,
     263    _Scheduler_simple_SMP_Move_from_ready_to_scheduled
     264  );
     265}
     266
     267void _Scheduler_simple_SMP_Start_idle(
    268268  const Scheduler_Control *scheduler,
    269269  Thread_Control *thread,
Note: See TracChangeset for help on using the changeset viewer.