Changeset 4dc5450 in rtems


Ignore:
Timestamp:
06/14/16 15:21:53 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
6bab009
Parents:
4da078a8
git-author:
Sebastian Huber <sebastian.huber@…> (06/14/16 15:21:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/22/16 12:00:28)
Message:

posix: Delete POSIX_API_Control::schedpolicy

This field was redundant.

Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/threadsup.h

    r4da078a8 r4dc5450  
    4848  /** This is the POSIX threads attribute set. */
    4949  pthread_attr_t          Attributes;
    50   /** This is the thread's current scheduling policy. */
    51   int                     schedpolicy;
    5250  /** This is the thread's current set of scheduling parameters. */
    5351  struct sched_param      schedparam;
  • cpukit/posix/src/pthread.c

    r4da078a8 r4dc5450  
    194194  api->thread = created;
    195195  _POSIX_Threads_Initialize_attributes( &api->Attributes );
    196   api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy;
    197196  api->schedparam  = _POSIX_Threads_Default_attributes.schedparam;
    198197  api->schedparam.sched_priority =
     
    233232  _Thread_State_acquire( executing, &lock_context );
    234233
    235   if ( api->schedpolicy == SCHED_SPORADIC ) {
     234  if ( api->Attributes.schedpolicy == SCHED_SPORADIC ) {
    236235    _Watchdog_Per_CPU_remove_relative( &api->Sporadic_timer );
    237236  }
  • cpukit/posix/src/pthreadcreate.c

    r4da078a8 r4dc5450  
    111111    case PTHREAD_INHERIT_SCHED:
    112112      api = executing->API_Extensions[ THREAD_API_POSIX ];
    113       schedpolicy = api->schedpolicy;
     113      schedpolicy = api->Attributes.schedpolicy;
    114114      schedparam  = api->schedparam;
    115115      break;
     
    227227
    228228  _POSIX_Threads_Copy_attributes( &api->Attributes, the_attr );
    229   api->schedpolicy = schedpolicy;
    230229  api->schedparam  = schedparam;
    231230
  • cpukit/posix/src/pthreadgetschedparam.c

    r4da078a8 r4dc5450  
    5252
    5353  api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    54   *policy = api->schedpolicy;
     54  *policy = api->Attributes.schedpolicy;
    5555  *param  = api->schedparam;
    5656  param->sched_priority = _POSIX_Priority_From_core(
  • cpukit/posix/src/pthreadsetschedparam.c

    r4da078a8 r4dc5450  
    8181  api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    8282
    83   if ( api->schedpolicy == SCHED_SPORADIC ) {
     83  if ( api->Attributes.schedpolicy == SCHED_SPORADIC ) {
    8484    _Watchdog_Per_CPU_remove_relative( &api->Sporadic_timer );
    8585  }
    8686
    87   api->schedpolicy = policy;
    8887  api->schedparam  = *param;
    8988  api->Attributes.schedpolicy = policy;
  • cpukit/score/include/rtems/score/thread.h

    r4da078a8 r4dc5450  
    713713   * - POSIX_API_Control::Attributes,
    714714   * - POSIX_API_Control::schedparam,
    715    * - POSIX_API_Control::schedpolicy,
    716715   * - RTEMS_API_Control::Signal,
    717716   * - Thread_Control::budget_algorithm,
Note: See TracChangeset for help on using the changeset viewer.