From ad87de4a67d8ce7e75d0b844efc03b98c3ecda1a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 11 Apr 2019 08:54:29 +0200 Subject: 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. --- cpukit/score/src/coretodset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/score/src/coretodset.c') diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c index f348596213..b021a58dc6 100644 --- a/cpukit/score/src/coretodset.c +++ b/cpukit/score/src/coretodset.c @@ -29,7 +29,7 @@ void _TOD_Set( { struct bintime tod_as_bintime; uint64_t tod_as_ticks; - uint32_t cpu_count; + uint32_t cpu_max; uint32_t cpu_index; _Assert( _TOD_Is_owner() ); @@ -38,9 +38,9 @@ void _TOD_Set( _Timecounter_Set_clock( &tod_as_bintime, lock_context ); tod_as_ticks = _Watchdog_Ticks_from_timespec( tod ); - cpu_count = _SMP_Get_processor_count(); + 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; Watchdog_Header *header; ISR_lock_Context lock_context; -- cgit v1.2.3