Changeset d097b546 in rtems


Ignore:
Timestamp:
Sep 21, 2016, 1:17:37 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
501043a
Parents:
d057d653
git-author:
Sebastian Huber <sebastian.huber@…> (09/21/16 13:17:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/02/16 09:05:40)
Message:

score: Rename scheduler ask for help stuff

Rename the scheduler ask for help stuff since this will be replaced step
by step with a second generation of the scheduler helping protocol.
Keep the old one for now in parallel to reduce the patch set sizes.

Update #2556.

Location:
cpukit/score
Files:
13 edited

Legend:

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

    rd057d653 rd097b546  
    115115   *   other thread needs help as a result.
    116116   *
    117    * @see _Scheduler_Ask_for_help().
    118    */
    119   Thread_Control *( *ask_for_help )(
     117   * @see _Scheduler_Ask_for_help_X().
     118   */
     119  Thread_Control *( *ask_for_help_X )(
    120120    const Scheduler_Control *scheduler,
    121121    Thread_Control          *offers_help,
     
    324324   * @retval NULL Always.
    325325   */
    326   Thread_Control *_Scheduler_default_Ask_for_help(
     326  Thread_Control *_Scheduler_default_Ask_for_help_X(
    327327    const Scheduler_Control *scheduler,
    328328    Thread_Control          *offers_help,
     
    331331
    332332  #define SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELP \
    333     _Scheduler_default_Ask_for_help,
     333    _Scheduler_default_Ask_for_help_X,
    334334#else
    335335  #define SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELP
  • cpukit/score/include/rtems/score/schedulerimpl.h

    rd057d653 rd097b546  
    192192  const Scheduler_Control *scheduler = _Scheduler_Get_own( offers_help );
    193193
    194   next_needs_help = ( *scheduler->Operations.ask_for_help )(
     194  next_needs_help = ( *scheduler->Operations.ask_for_help_X )(
    195195    scheduler,
    196196    offers_help,
     
    220220 * @param[in] needs_help The thread needing help.
    221221 */
    222 RTEMS_INLINE_ROUTINE void _Scheduler_Ask_for_help(
     222RTEMS_INLINE_ROUTINE void _Scheduler_Ask_for_help_X(
    223223  Thread_Control *needs_help
    224224)
     
    227227    const Scheduler_Control *scheduler = _Scheduler_Get_own( needs_help );
    228228
    229     needs_help = ( *scheduler->Operations.ask_for_help )(
     229    needs_help = ( *scheduler->Operations.ask_for_help_X )(
    230230      scheduler,
    231231      needs_help,
     
    261261        || _Scheduler_Node_get_user( node ) != needs_help
    262262    ) {
    263       _Scheduler_Ask_for_help( needs_help );
     263      _Scheduler_Ask_for_help_X( needs_help );
    264264    }
    265265  }
  • cpukit/score/include/rtems/score/schedulerpriorityaffinitysmp.h

    rd057d653 rd097b546  
    5858    _Scheduler_default_Map_priority, \
    5959    _Scheduler_default_Unmap_priority, \
    60     _Scheduler_priority_affinity_SMP_Ask_for_help, \
     60    _Scheduler_priority_affinity_SMP_Ask_for_help_X, \
    6161    _Scheduler_priority_affinity_SMP_Node_initialize, \
    6262    _Scheduler_default_Node_destroy, \
     
    142142);
    143143
    144 Thread_Control *_Scheduler_priority_affinity_SMP_Ask_for_help(
     144Thread_Control *_Scheduler_priority_affinity_SMP_Ask_for_help_X(
    145145  const Scheduler_Control *scheduler,
    146146  Thread_Control          *offers_help,
  • cpukit/score/include/rtems/score/schedulerprioritysmp.h

    rd057d653 rd097b546  
    8787    _Scheduler_default_Map_priority, \
    8888    _Scheduler_default_Unmap_priority, \
    89     _Scheduler_priority_SMP_Ask_for_help, \
     89    _Scheduler_priority_SMP_Ask_for_help_X, \
    9090    _Scheduler_priority_SMP_Node_initialize, \
    9191    _Scheduler_default_Node_destroy, \
     
    121121);
    122122
    123 Thread_Control *_Scheduler_priority_SMP_Ask_for_help(
     123Thread_Control *_Scheduler_priority_SMP_Ask_for_help_X(
    124124  const Scheduler_Control *scheduler,
    125125  Thread_Control          *needs_help,
  • cpukit/score/include/rtems/score/schedulersimplesmp.h

    rd057d653 rd097b546  
    7070    _Scheduler_default_Map_priority, \
    7171    _Scheduler_default_Unmap_priority, \
    72     _Scheduler_simple_SMP_Ask_for_help, \
     72    _Scheduler_simple_SMP_Ask_for_help_X, \
    7373    _Scheduler_simple_SMP_Node_initialize, \
    7474    _Scheduler_default_Node_destroy, \
     
    104104);
    105105
    106 Thread_Control *_Scheduler_simple_SMP_Ask_for_help(
     106Thread_Control *_Scheduler_simple_SMP_Ask_for_help_X(
    107107  const Scheduler_Control *scheduler,
    108108  Thread_Control          *offers_help,
  • cpukit/score/include/rtems/score/schedulersmpimpl.h

    rd057d653 rd097b546  
    10141014}
    10151015
    1016 static inline Thread_Control *_Scheduler_SMP_Ask_for_help(
     1016static inline Thread_Control *_Scheduler_SMP_Ask_for_help_X(
    10171017  Scheduler_Context                  *context,
    10181018  Thread_Control                     *offers_help,
  • cpukit/score/include/rtems/score/schedulerstrongapa.h

    rd057d653 rd097b546  
    8787    _Scheduler_default_Map_priority, \
    8888    _Scheduler_default_Unmap_priority, \
    89     _Scheduler_strong_APA_Ask_for_help, \
     89    _Scheduler_strong_APA_Ask_for_help_X, \
    9090    _Scheduler_strong_APA_Node_initialize, \
    9191    _Scheduler_default_Node_destroy, \
     
    121121);
    122122
    123 Thread_Control *_Scheduler_strong_APA_Ask_for_help(
     123Thread_Control *_Scheduler_strong_APA_Ask_for_help_X(
    124124  const Scheduler_Control *scheduler,
    125125  Thread_Control          *needs_help,
  • cpukit/score/src/schedulerchangeroot.c

    rd057d653 rd097b546  
    3939  _Resource_Node_set_root( resource_node, &root->Resource_node );
    4040
    41   needs_help_too = ( *scheduler->Operations.ask_for_help )(
     41  needs_help_too = ( *scheduler->Operations.ask_for_help_X )(
    4242    scheduler,
    4343    offers_help,
     
    7676
    7777  if ( ctx.needs_help != NULL ) {
    78     _Scheduler_Ask_for_help( ctx.needs_help );
     78    _Scheduler_Ask_for_help_X( ctx.needs_help );
    7979  }
    8080}
  • cpukit/score/src/schedulerdefaultaskforhelp.c

    rd057d653 rd097b546  
    1313#include <rtems/score/scheduler.h>
    1414
    15 Thread_Control *_Scheduler_default_Ask_for_help(
     15Thread_Control *_Scheduler_default_Ask_for_help_X(
    1616  const Scheduler_Control *scheduler,
    1717  Thread_Control          *offers_help,
  • cpukit/score/src/schedulerpriorityaffinitysmp.c

    rd057d653 rd097b546  
    526526}
    527527
    528 Thread_Control *_Scheduler_priority_affinity_SMP_Ask_for_help(
     528Thread_Control *_Scheduler_priority_affinity_SMP_Ask_for_help_X(
    529529  const Scheduler_Control *scheduler,
    530530  Thread_Control          *offers_help,
     
    534534  Scheduler_Context *context = _Scheduler_Get_context( scheduler );
    535535
    536   needs_help = _Scheduler_SMP_Ask_for_help(
     536  needs_help = _Scheduler_SMP_Ask_for_help_X(
    537537    context,
    538538    offers_help,
  • cpukit/score/src/schedulerprioritysmp.c

    rd057d653 rd097b546  
    245245}
    246246
    247 Thread_Control *_Scheduler_priority_SMP_Ask_for_help(
     247Thread_Control *_Scheduler_priority_SMP_Ask_for_help_X(
    248248  const Scheduler_Control *scheduler,
    249249  Thread_Control          *offers_help,
     
    253253  Scheduler_Context *context = _Scheduler_Get_context( scheduler );
    254254
    255   return _Scheduler_SMP_Ask_for_help(
     255  return _Scheduler_SMP_Ask_for_help_X(
    256256    context,
    257257    offers_help,
  • cpukit/score/src/schedulersimplesmp.c

    rd057d653 rd097b546  
    312312}
    313313
    314 Thread_Control *_Scheduler_simple_SMP_Ask_for_help(
     314Thread_Control *_Scheduler_simple_SMP_Ask_for_help_X(
    315315  const Scheduler_Control *scheduler,
    316316  Thread_Control          *offers_help,
     
    320320  Scheduler_Context *context = _Scheduler_Get_context( scheduler );
    321321
    322   return _Scheduler_SMP_Ask_for_help(
     322  return _Scheduler_SMP_Ask_for_help_X(
    323323    context,
    324324    offers_help,
  • cpukit/score/src/schedulerstrongapa.c

    rd057d653 rd097b546  
    371371}
    372372
    373 Thread_Control *_Scheduler_strong_APA_Ask_for_help(
     373Thread_Control *_Scheduler_strong_APA_Ask_for_help_X(
    374374  const Scheduler_Control *scheduler,
    375375  Thread_Control          *offers_help,
     
    379379  Scheduler_Context *context = _Scheduler_Get_context( scheduler );
    380380
    381   return _Scheduler_SMP_Ask_for_help(
     381  return _Scheduler_SMP_Ask_for_help_X(
    382382    context,
    383383    offers_help,
Note: See TracChangeset for help on using the changeset viewer.