Changeset 6bab009 in rtems


Ignore:
Timestamp:
Jun 14, 2016, 3:23:03 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
eec08ef
Parents:
4dc5450
git-author:
Sebastian Huber <sebastian.huber@…> (06/14/16 15:23:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/22/16 12:00:28)
Message:

posix: Delete POSIX_API_Control::schedparam

This field was redundant.

Location:
cpukit
Files:
7 edited

Legend:

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

    r4dc5450 r6bab009  
    4646  /** Back pointer to thread of this POSIX API control. */
    4747  Thread_Control         *thread;
     48
    4849  /** This is the POSIX threads attribute set. */
    4950  pthread_attr_t          Attributes;
    50   /** This is the thread's current set of scheduling parameters. */
    51   struct sched_param      schedparam;
     51
    5252  /**
    5353   * This is the timer which controls when the thread executes at
  • cpukit/posix/src/pthread.c

    r4dc5450 r6bab009  
    117117  _POSIX_Threads_Sporadic_timer_insert( the_thread, api );
    118118
    119   new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
     119  new_priority = _POSIX_Priority_To_core(
     120    api->Attributes.schedparam.sched_priority
     121  );
    120122
    121123  _Thread_State_release( the_thread, &lock_context );
     
    168170  _Thread_Change_priority(
    169171    the_thread,
    170     _POSIX_Priority_To_core( api->schedparam.sched_ss_low_priority ),
     172    _POSIX_Priority_To_core(
     173      api->Attributes.schedparam.sched_ss_low_priority
     174    ),
    171175    NULL,
    172176    _POSIX_Threads_Sporadic_budget_callout_filter,
     
    194198  api->thread = created;
    195199  _POSIX_Threads_Initialize_attributes( &api->Attributes );
    196   api->schedparam  = _POSIX_Threads_Default_attributes.schedparam;
    197   api->schedparam.sched_priority =
    198      _POSIX_Priority_From_core( created->current_priority );
     200  api->Attributes.schedparam.sched_priority = _POSIX_Priority_From_core(
     201    created->current_priority
     202  );
    199203
    200204  /*
  • cpukit/posix/src/pthreadcreate.c

    r4dc5450 r6bab009  
    112112      api = executing->API_Extensions[ THREAD_API_POSIX ];
    113113      schedpolicy = api->Attributes.schedpolicy;
    114       schedparam  = api->schedparam;
     114      schedparam  = api->Attributes.schedparam;
    115115      break;
    116116
     
    227227
    228228  _POSIX_Threads_Copy_attributes( &api->Attributes, the_attr );
    229   api->schedparam  = schedparam;
    230229
    231230  if ( schedpolicy == SCHED_SPORADIC ) {
  • cpukit/posix/src/pthreadgetschedparam.c

    r4dc5450 r6bab009  
    5353  api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    5454  *policy = api->Attributes.schedpolicy;
    55   *param  = api->schedparam;
     55  *param  = api->Attributes.schedparam;
    5656  param->sched_priority = _POSIX_Priority_From_core(
    5757    the_thread->real_priority
  • cpukit/posix/src/pthreadsetschedparam.c

    r4dc5450 r6bab009  
    8585  }
    8686
    87   api->schedparam  = *param;
    8887  api->Attributes.schedpolicy = policy;
    8988  api->Attributes.schedparam  = *param;
     
    9897      the_thread->cpu_time_budget =
    9998        rtems_configuration_get_ticks_per_timeslice();
    100       new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
     99      new_priority = _POSIX_Priority_To_core(
     100        api->Attributes.schedparam.sched_priority
     101      );
    101102      break;
    102103  }
  • cpukit/posix/src/pthreadsetschedprio.c

    r4dc5450 r6bab009  
    4444
    4545  _Thread_State_acquire_critical( the_thread, &lock_context );
    46   api->schedparam.sched_priority = prio;
    4746  api->Attributes.schedparam.sched_priority = prio;
    4847  _Thread_State_release( the_thread, &lock_context );
  • cpukit/score/include/rtems/score/thread.h

    r4dc5450 r6bab009  
    712712   *
    713713   * - POSIX_API_Control::Attributes,
    714    * - POSIX_API_Control::schedparam,
    715714   * - RTEMS_API_Control::Signal,
    716715   * - Thread_Control::budget_algorithm,
Note: See TracChangeset for help on using the changeset viewer.