diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-13 13:37:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-16 11:44:12 +0200 |
commit | 6c2eedc7dd86898dceb9bbbe96b02d94cb468e01 (patch) | |
tree | 59237dda2a2eab59ceb8cc209a45d8c3b635ce09 /cpukit/score | |
parent | fstests/fsstatvfs: Fix end of test message (diff) | |
download | rtems-6c2eedc7dd86898dceb9bbbe96b02d94cb468e01.tar.bz2 |
smp: Add maximum_processors field to config
Delete rtems_configuration_get_smp_maximum_processors(). Delete
rtems_configuration_smp_maximum_processors variable. Add
maximum_processors field to rtems_configuration_table if RTEMS_SMP is
defined. Add rtems_configuration_get_maximum_processors().
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/include/rtems/bspsmp.h | 8 | ||||
-rw-r--r-- | cpukit/score/src/percpu.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/thread.c | 2 |
3 files changed, 2 insertions, 10 deletions
diff --git a/cpukit/score/include/rtems/bspsmp.h b/cpukit/score/include/rtems/bspsmp.h index d0681ca8f2..1996d5125f 100644 --- a/cpukit/score/include/rtems/bspsmp.h +++ b/cpukit/score/include/rtems/bspsmp.h @@ -49,14 +49,6 @@ extern "C" { #ifndef ASM /** - * @brief Maximum number of CPUs in SMP system. - * - * This variable is set during the SMP initialization sequence to - * indicate the Maximum number of CPUs in this system. - */ -extern uint32_t rtems_configuration_smp_maximum_processors; - -/** * @brief Initialize secondary CPUs. * * This method is invoked by RTEMS during initialization to bring the diff --git a/cpukit/score/src/percpu.c b/cpukit/score/src/percpu.c index 4a93fd83d1..7027093577 100644 --- a/cpukit/score/src/percpu.c +++ b/cpukit/score/src/percpu.c @@ -46,7 +46,7 @@ */ size = rtems_configuration_get_interrupt_stack_size(); _Per_CPU_Information_p[0] = &_Per_CPU_Information[0]; - for (cpu=1 ; cpu < rtems_configuration_smp_maximum_processors; cpu++ ) { + for (cpu=1 ; cpu < rtems_configuration_get_maximum_processors(); cpu++ ) { Per_CPU_Control *p = &_Per_CPU_Information[cpu]; diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c index b266d6ec82..391ea52665 100644 --- a/cpukit/score/src/thread.c +++ b/cpukit/score/src/thread.c @@ -84,7 +84,7 @@ void _Thread_Handler_initialization(void) * coupled multiprocessing system, account for the MPCI Server Thread. */ #if defined(RTEMS_SMP) - maximum_internal_threads = rtems_configuration_smp_maximum_processors; + maximum_internal_threads = rtems_configuration_get_maximum_processors(); #else maximum_internal_threads = 1; #endif |