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/score/percpu.h | |
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 |
1 files changed, 2 insertions, 2 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 ) ); \ |