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.
This commit is contained in:
Sebastian Huber
2019-04-11 08:52:36 +02:00
parent 77f9a1be47
commit cfcd6dc98c
3 changed files with 5 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ static void restart_interrupt(void *arg)
(void) level;
_SMP_barrier_State_initialize(&bs);
_SMP_barrier_Wait(&restart_barrier, &bs, _SMP_Processor_count);
_SMP_barrier_Wait(&restart_barrier, &bs, _SMP_Get_processor_count());
cpu_self_index = rtems_scheduler_get_processor();
thread_index = cpu_self_index % QORIQ_THREAD_COUNT;

View File

@@ -35,11 +35,11 @@ extern "C" {
*/
#if defined( RTEMS_SMP )
extern uint32_t _SMP_Processor_count;
extern uint32_t _SMP_Processor_maximum;
static inline uint32_t _SMP_Get_processor_count( void )
{
return _SMP_Processor_count;
return _SMP_Processor_maximum;
}
#else
#define _SMP_Get_processor_count() UINT32_C(1)

View File

@@ -30,7 +30,7 @@
Processor_mask _SMP_Online_processors;
uint32_t _SMP_Processor_count;
uint32_t _SMP_Processor_maximum;
static const Scheduler_Assignment *_Scheduler_Get_initial_assignment(
uint32_t cpu_index
@@ -126,7 +126,7 @@ void _SMP_Handler_initialize( void )
cpu_count = _CPU_SMP_Initialize();
cpu_count = cpu_count < cpu_max ? cpu_count : cpu_max;
_SMP_Processor_count = cpu_count;
_SMP_Processor_maximum = cpu_count;
for ( cpu_index = cpu_count ; cpu_index < cpu_max; ++cpu_index ) {
const Scheduler_Assignment *assignment;