summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadcreateidle.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-11 08:54:29 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-11 09:19:12 +0200
commitad87de4a67d8ce7e75d0b844efc03b98c3ecda1a (patch)
tree107f99285b1d0744f0c6e59bf9014b21085a01d6 /cpukit/score/src/threadcreateidle.c
parentscore: Rename _SMP_Processor_count (diff)
downloadrtems-ad87de4a67d8ce7e75d0b844efc03b98c3ecda1a.tar.bz2
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.
Diffstat (limited to 'cpukit/score/src/threadcreateidle.c')
-rw-r--r--cpukit/score/src/threadcreateidle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c
index eaf5d50389..65199f0f7d 100644
--- a/cpukit/score/src/threadcreateidle.c
+++ b/cpukit/score/src/threadcreateidle.c
@@ -85,12 +85,13 @@ static void _Thread_Create_idle_for_CPU( Per_CPU_Control *cpu )
void _Thread_Create_idle( void )
{
- uint32_t cpu_count = _SMP_Get_processor_count();
+ uint32_t cpu_max;
uint32_t cpu_index;
_System_state_Set( SYSTEM_STATE_BEFORE_MULTITASKING );
+ cpu_max = _SMP_Get_processor_maximum();
- for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
+ for ( cpu_index = 0 ; cpu_index < cpu_max ; ++cpu_index ) {
Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index );
if ( _Per_CPU_Is_processor_online( cpu ) ) {