Changeset ad87de4 in rtems for bsps


Ignore:
Timestamp:
Apr 11, 2019, 6:54:29 AM (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5ca8190b
Parents:
cfcd6dc9
git-author:
Sebastian Huber <sebastian.huber@…> (04/11/19 06:54:29)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/11/19 07:19:12)
Message:

score: Rename _SMP_Get_processor_count()

Rename _SMP_Get_processor_count() in _SMP_Get_processor_maximum() to be
in line with the API level rtems_scheduler_get_processor_maximum().

Update #3732.

Location:
bsps
Files:
3 edited

Legend:

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

    rcfcd6dc9 rad87de4  
    6868
    6969  _SMP_barrier_State_initialize(&bs);
    70   _SMP_barrier_Wait(&restart_barrier, &bs, _SMP_Get_processor_count());
     70  _SMP_barrier_Wait(&restart_barrier, &bs, _SMP_Get_processor_maximum());
    7171
    7272  cpu_self_index = rtems_scheduler_get_processor();
  • bsps/riscv/riscv/irq/irq.c

    rcfcd6dc9 rad87de4  
    248248      enable[group] |= bit;
    249249    } else {
     250      uint32_t cpu_max;
    250251      uint32_t cpu_index;
    251       uint32_t cpu_count;
    252 
    253       cpu_count = _SMP_Get_processor_count();
    254 
    255       for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {
     252
     253      cpu_max = _SMP_Get_processor_maximum();
     254
     255      for (cpu_index = 0; cpu_index < cpu_max; ++cpu_index) {
    256256        Per_CPU_Control *cpu;
    257257
     
    290290      enable[group] &= ~bit;
    291291    } else {
     292      uint32_t cpu_max;
    292293      uint32_t cpu_index;
    293       uint32_t cpu_count;
    294 
    295       cpu_count = _SMP_Get_processor_count();
    296 
    297       for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {
     294
     295      cpu_max = _SMP_Get_processor_maximum();
     296
     297      for (cpu_index = 0; cpu_index < cpu_max; ++cpu_index) {
    298298        Per_CPU_Control *cpu;
    299299
     
    358358
    359359    if (enable != NULL) {
     360      uint32_t cpu_max;
    360361      uint32_t cpu_index;
    361       uint32_t cpu_count;
    362 
    363       cpu_count = _SMP_Get_processor_count();
    364 
    365       for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {
     362
     363      cpu_max = _SMP_Get_processor_maximum();
     364
     365      for (cpu_index = 0; cpu_index < cpu_max; ++cpu_index) {
    366366        Per_CPU_Control *cpu;
    367367
  • bsps/shared/dev/clock/clockimpl.h

    rcfcd6dc9 rad87de4  
    8080  rtems_clock_tick();
    8181#elif defined(RTEMS_SMP) && defined(CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR)
    82   uint32_t cpu_count = _SMP_Get_processor_count();
     82  uint32_t cpu_max;
    8383  uint32_t cpu_index;
    8484
    85   for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
     85  cpu_max = _SMP_Get_processor_maximum();
     86
     87  for ( cpu_index = 0 ; cpu_index < cpu_max ; ++cpu_index ) {
    8688    Per_CPU_Control *cpu;
    8789
Note: See TracChangeset for help on using the changeset viewer.