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.
This commit is contained in:
Sebastian Huber
2019-04-11 09:19:12 +02:00
parent cfcd6dc98c
commit ad87de4a67
13 changed files with 60 additions and 48 deletions
+4 -2
View File
@@ -79,10 +79,12 @@ static void Clock_driver_timecounter_tick( void )
#if defined(CLOCK_DRIVER_USE_DUMMY_TIMECOUNTER)
rtems_clock_tick();
#elif defined(RTEMS_SMP) && defined(CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR)
uint32_t cpu_count = _SMP_Get_processor_count();
uint32_t cpu_max;
uint32_t cpu_index;
for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
cpu_max = _SMP_Get_processor_maximum();
for ( cpu_index = 0 ; cpu_index < cpu_max ; ++cpu_index ) {
Per_CPU_Control *cpu;
cpu = _Per_CPU_Get_by_index( cpu_index );