score: Rename Per_CPU_Control::started

Rename Per_CPU_Control::started into Per_CPU_Control::online to match
standard nomenclature.
This commit is contained in:
Sebastian Huber
2016-02-17 15:34:51 +01:00
parent a38d1fe412
commit c284a16000
3 changed files with 6 additions and 6 deletions

View File

@@ -364,7 +364,7 @@ typedef struct Per_CPU_Control {
* @brief Indicates if the processor has been successfully started via
* _CPU_SMP_Start_processor().
*/
bool started;
bool online;
#endif
Per_CPU_Stats Stats;
@@ -523,12 +523,12 @@ static inline struct _Thread_Control *_Per_CPU_Get_executing(
return cpu->executing;
}
static inline bool _Per_CPU_Is_processor_started(
static inline bool _Per_CPU_Is_processor_online(
const Per_CPU_Control *cpu
)
{
#if defined( RTEMS_SMP )
return cpu->started;
return cpu->online;
#else
(void) cpu;

View File

@@ -61,7 +61,7 @@ static void _SMP_Start_processors( uint32_t cpu_count )
}
}
cpu->started = started;
cpu->online = started;
if ( started ) {
Scheduler_Context *context =
@@ -119,7 +119,7 @@ void _SMP_Request_start_multitasking( void )
for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index );
if ( _Per_CPU_Is_processor_started( cpu ) ) {
if ( _Per_CPU_Is_processor_online( cpu ) ) {
_Per_CPU_State_change( cpu, PER_CPU_STATE_REQUEST_START_MULTITASKING );
}
}

View File

@@ -90,7 +90,7 @@ void _Thread_Create_idle( void )
for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index );
if ( _Per_CPU_Is_processor_started( cpu ) ) {
if ( _Per_CPU_Is_processor_online( cpu ) ) {
_Thread_Create_idle_for_cpu( cpu );
}
}