Changeset cfcd6dc9 in rtems


Ignore:
Timestamp:
Apr 11, 2019, 6:52:36 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ad87de4
Parents:
77f9a1b
git-author:
Sebastian Huber <sebastian.huber@…> (04/11/19 06:52:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/11/19 07:19:12)
Message:

score: Rename _SMP_Processor_count

Rename _SMP_Processor_count in _SMP_Processor_maximum to be in line with
the API level rtems_scheduler_get_processor_maximum().

Update #3732.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/qoriq/start/bsprestart.c

    r77f9a1b rcfcd6dc9  
    6868
    6969  _SMP_barrier_State_initialize(&bs);
    70   _SMP_barrier_Wait(&restart_barrier, &bs, _SMP_Processor_count);
     70  _SMP_barrier_Wait(&restart_barrier, &bs, _SMP_Get_processor_count());
    7171
    7272  cpu_self_index = rtems_scheduler_get_processor();
  • cpukit/include/rtems/score/smp.h

    r77f9a1b rcfcd6dc9  
    3636
    3737#if defined( RTEMS_SMP )
    38   extern uint32_t _SMP_Processor_count;
     38  extern uint32_t _SMP_Processor_maximum;
    3939
    4040  static inline uint32_t _SMP_Get_processor_count( void )
    4141  {
    42     return _SMP_Processor_count;
     42    return _SMP_Processor_maximum;
    4343  }
    4444#else
  • cpukit/score/src/smp.c

    r77f9a1b rcfcd6dc9  
    3131Processor_mask _SMP_Online_processors;
    3232
    33 uint32_t _SMP_Processor_count;
     33uint32_t _SMP_Processor_maximum;
    3434
    3535static const Scheduler_Assignment *_Scheduler_Get_initial_assignment(
     
    127127  cpu_count = _CPU_SMP_Initialize();
    128128  cpu_count = cpu_count < cpu_max ? cpu_count : cpu_max;
    129   _SMP_Processor_count = cpu_count;
     129  _SMP_Processor_maximum = cpu_count;
    130130
    131131  for ( cpu_index = cpu_count ; cpu_index < cpu_max; ++cpu_index ) {
Note: See TracChangeset for help on using the changeset viewer.