Changeset 6359b68 in rtems


Ignore:
Timestamp:
May 15, 2014, 6:47:50 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b4bdbcf
Parents:
3733b224
git-author:
Sebastian Huber <sebastian.huber@…> (05/15/14 06:47:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/15/14 10:18:49)
Message:

score: Add and use _Scheduler_SMP_Start_idle()

Location:
cpukit/score
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    r3733b224 r6359b68  
    137137libscore_a_SOURCES += src/schedulerdefaultgetaffinity.c
    138138libscore_a_SOURCES += src/schedulerdefaultsetaffinity.c
     139libscore_a_SOURCES += src/schedulersmpstartidle.c
    139140endif
    140141
  • cpukit/score/include/rtems/score/schedulerpriorityaffinitysmp.h

    r3733b224 r6359b68  
    6262    _Scheduler_default_Release_job, \
    6363    _Scheduler_default_Tick, \
    64     _Scheduler_priority_SMP_Start_idle, \
     64    _Scheduler_SMP_Start_idle, \
    6565    _Scheduler_priority_affinity_SMP_Get_affinity, \
    6666    _Scheduler_priority_affinity_SMP_Set_affinity \
  • cpukit/score/include/rtems/score/schedulerprioritysmp.h

    r3733b224 r6359b68  
    9191    _Scheduler_default_Release_job, \
    9292    _Scheduler_default_Tick, \
    93     _Scheduler_priority_SMP_Start_idle, \
     93    _Scheduler_SMP_Start_idle, \
    9494    _Scheduler_default_Get_affinity, \
    9595    _Scheduler_default_Set_affinity \
     
    130130);
    131131
    132 void _Scheduler_priority_SMP_Start_idle(
    133   const Scheduler_Control *scheduler,
    134   Thread_Control *thread,
    135   Per_CPU_Control *cpu
    136 );
    137 
    138132/** @} */
    139133
  • cpukit/score/include/rtems/score/schedulersimplesmp.h

    r3733b224 r6359b68  
    7272    _Scheduler_default_Release_job, \
    7373    _Scheduler_default_Tick, \
    74     _Scheduler_simple_SMP_Start_idle, \
     74    _Scheduler_SMP_Start_idle, \
    7575    _Scheduler_default_Get_affinity, \
    7676    _Scheduler_default_Set_affinity \
     
    106106);
    107107
    108 void _Scheduler_simple_SMP_Start_idle(
    109   const Scheduler_Control *scheduler,
    110   Thread_Control *thread,
    111   Per_CPU_Control *cpu
    112 );
    113 
    114108/** @} */
    115109
  • cpukit/score/include/rtems/score/schedulersmp.h

    r3733b224 r6359b68  
    9999} Scheduler_SMP_Node;
    100100
     101void _Scheduler_SMP_Start_idle(
     102  const Scheduler_Control *scheduler,
     103  Thread_Control *thread,
     104  Per_CPU_Control *cpu
     105);
     106
    101107/** @} */
    102108
  • cpukit/score/include/rtems/score/schedulersmpimpl.h

    r3733b224 r6359b68  
    621621}
    622622
    623 static inline void _Scheduler_SMP_Start_idle(
    624   Scheduler_Context *context,
    625   Thread_Control *thread,
    626   Per_CPU_Control *cpu
    627 )
    628 {
    629   Scheduler_SMP_Context *self = _Scheduler_SMP_Get_self( context );
    630   Scheduler_SMP_Node *node = _Scheduler_SMP_Node_get( thread );
    631 
    632   node->state = SCHEDULER_SMP_NODE_SCHEDULED;
    633 
    634   _Thread_Set_CPU( thread, cpu );
    635   _Chain_Append_unprotected( &self->Scheduled, &thread->Object.Node );
    636 }
    637 
    638623/** @} */
    639624
  • cpukit/score/src/schedulerprioritysmp.c

    r3733b224 r6359b68  
    326326  _ISR_Enable( level );
    327327}
    328 
    329 void _Scheduler_priority_SMP_Start_idle(
    330   const Scheduler_Control *scheduler,
    331   Thread_Control *thread,
    332   Per_CPU_Control *cpu
    333 )
    334 {
    335   Scheduler_Context *context = _Scheduler_Get_context( scheduler );
    336 
    337   _Scheduler_SMP_Start_idle( context, thread, cpu );
    338 }
  • cpukit/score/src/schedulersimplesmp.c

    r3733b224 r6359b68  
    262262  _ISR_Enable( level );
    263263}
    264 
    265 void _Scheduler_simple_SMP_Start_idle(
    266   const Scheduler_Control *scheduler,
    267   Thread_Control *thread,
    268   Per_CPU_Control *cpu
    269 )
    270 {
    271   Scheduler_Context *context = _Scheduler_Get_context( scheduler );
    272 
    273   _Scheduler_SMP_Start_idle( context, thread, cpu );
    274 }
Note: See TracChangeset for help on using the changeset viewer.