diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-11 08:54:29 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-11 09:19:12 +0200 |
commit | ad87de4a67d8ce7e75d0b844efc03b98c3ecda1a (patch) | |
tree | 107f99285b1d0744f0c6e59bf9014b21085a01d6 /cpukit/include/rtems | |
parent | score: Rename _SMP_Processor_count (diff) | |
download | rtems-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 '')
-rw-r--r-- | cpukit/include/rtems/score/percpu.h | 4 | ||||
-rw-r--r-- | cpukit/include/rtems/score/smp.h | 4 |
2 files changed, 4 insertions, 4 deletions
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 ) ); \ diff --git a/cpukit/include/rtems/score/smp.h b/cpukit/include/rtems/score/smp.h index a960097948..94b7566f0e 100644 --- a/cpukit/include/rtems/score/smp.h +++ b/cpukit/include/rtems/score/smp.h @@ -37,12 +37,12 @@ extern "C" { #if defined( RTEMS_SMP ) extern uint32_t _SMP_Processor_maximum; - static inline uint32_t _SMP_Get_processor_count( void ) + static inline uint32_t _SMP_Get_processor_maximum( void ) { return _SMP_Processor_maximum; } #else - #define _SMP_Get_processor_count() UINT32_C(1) + #define _SMP_Get_processor_maximum() UINT32_C(1) #endif #if defined( RTEMS_SMP ) |