Ignore:
Timestamp:
Jul 4, 2017, 5:28:44 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1ec9c86
Parents:
7851555
git-author:
Sebastian Huber <sebastian.huber@…> (07/04/17 05:28:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/07/17 05:28:35)
Message:

score: Add processor set to scheduler context

Replace the simple processor count with the processor set owned by the
scheduler instance.

Update #3059.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/schedulerremoveprocessor.c

    r7851555 r6b1d8c7  
    9999  _ISR_lock_ISR_disable( &lock_context );
    100100  _Scheduler_Acquire_critical( scheduler, &lock_context );
    101   processor_count = scheduler_context->processor_count - 1;
    102   scheduler_context->processor_count = processor_count;
     101  _Processor_mask_Clear( &scheduler_context->Processors, cpu_index );
     102  processor_count = _Processor_mask_Count( &scheduler_context->Processors );
    103103  _Scheduler_Release_critical( scheduler, &lock_context );
    104104  _ISR_lock_ISR_enable( &lock_context );
     
    131131    _Assert( _Chain_Is_empty( &idle->Scheduler.Scheduler_nodes ) );
    132132  } else {
    133     ++scheduler_context->processor_count;
     133    _Processor_mask_Set( &scheduler_context->Processors, cpu_index );
    134134  }
    135135
Note: See TracChangeset for help on using the changeset viewer.