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/include/rtems/score/percpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/include/rtems/score/percpu.h') diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h index 26ae8c68d0..4ffefae292 100644 --- a/cpukit/include/rtems/score/percpu.h +++ b/cpukit/include/rtems/score/percpu.h @@ -597,7 +597,7 @@ extern Per_CPU_Control_envelope _Per_CPU_Information[] CPU_STRUCTURE_ALIGNMENT; #if defined( RTEMS_SMP ) #define _Per_CPU_Acquire_all( isr_cookie ) \ do { \ - uint32_t ncpus = _SMP_Get_processor_count(); \ + uint32_t ncpus = _SMP_Get_processor_maximum(); \ uint32_t cpu; \ _ISR_Local_disable( isr_cookie ); \ for ( cpu = 0 ; cpu < ncpus ; ++cpu ) { \ @@ -612,7 +612,7 @@ extern Per_CPU_Control_envelope _Per_CPU_Information[] CPU_STRUCTURE_ALIGNMENT; #if defined( RTEMS_SMP ) #define _Per_CPU_Release_all( isr_cookie ) \ do { \ - uint32_t ncpus = _SMP_Get_processor_count(); \ + uint32_t ncpus = _SMP_Get_processor_maximum(); \ uint32_t cpu; \ for ( cpu = 0 ; cpu < ncpus ; ++cpu ) { \ _Per_CPU_Release( _Per_CPU_Get_by_index( cpu ) ); \ -- cgit v1.2.3