forked from Imagelibrary/rtems
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:
@@ -67,7 +67,7 @@ static void restart_interrupt(void *arg)
|
|||||||
(void) level;
|
(void) level;
|
||||||
|
|
||||||
_SMP_barrier_State_initialize(&bs);
|
_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();
|
cpu_self_index = rtems_scheduler_get_processor();
|
||||||
thread_index = cpu_self_index % QORIQ_THREAD_COUNT;
|
thread_index = cpu_self_index % QORIQ_THREAD_COUNT;
|
||||||
|
|||||||
@@ -35,11 +35,11 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined( RTEMS_SMP )
|
#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 )
|
static inline uint32_t _SMP_Get_processor_count( void )
|
||||||
{
|
{
|
||||||
return _SMP_Processor_count;
|
return _SMP_Processor_maximum;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define _SMP_Get_processor_count() UINT32_C(1)
|
#define _SMP_Get_processor_count() UINT32_C(1)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
Processor_mask _SMP_Online_processors;
|
Processor_mask _SMP_Online_processors;
|
||||||
|
|
||||||
uint32_t _SMP_Processor_count;
|
uint32_t _SMP_Processor_maximum;
|
||||||
|
|
||||||
static const Scheduler_Assignment *_Scheduler_Get_initial_assignment(
|
static const Scheduler_Assignment *_Scheduler_Get_initial_assignment(
|
||||||
uint32_t cpu_index
|
uint32_t cpu_index
|
||||||
@@ -126,7 +126,7 @@ void _SMP_Handler_initialize( void )
|
|||||||
|
|
||||||
cpu_count = _CPU_SMP_Initialize();
|
cpu_count = _CPU_SMP_Initialize();
|
||||||
cpu_count = cpu_count < cpu_max ? cpu_count : cpu_max;
|
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 ) {
|
for ( cpu_index = cpu_count ; cpu_index < cpu_max; ++cpu_index ) {
|
||||||
const Scheduler_Assignment *assignment;
|
const Scheduler_Assignment *assignment;
|
||||||
|
|||||||
Reference in New Issue
Block a user