diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-10 10:58:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-11 08:52:54 +0200 |
commit | 4bc8d2e71774452e66c619dad98ccab6db8a2324 (patch) | |
tree | 9bcbf057fa8bd77816542cab020b9348ba516062 /cpukit/rtems/include/rtems/rtems/smp.h | |
parent | score: Statically initialize IO manager (diff) | |
download | rtems-4bc8d2e71774452e66c619dad98ccab6db8a2324.tar.bz2 |
rtems: Rename rtems_smp_get_processor_count()
Rename rtems_smp_get_processor_count() in rtems_get_processor_count().
Make rtems_get_processor_count() a function in uni-processor
configurations to enable ABI compatibility with SMP configurations.
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/smp.h')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/smp.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/smp.h b/cpukit/rtems/include/rtems/rtems/smp.h index d2904e4191..b327514c09 100644 --- a/cpukit/rtems/include/rtems/rtems/smp.h +++ b/cpukit/rtems/include/rtems/rtems/smp.h @@ -40,8 +40,7 @@ extern "C" { /** * @brief Returns the count of processors in the system. * - * On uni-processor configurations this is a compile time constant and defined - * to be one. + * On uni-processor configurations a value of one will be returned. * * On SMP configurations this returns the value of a global variable set during * system initialization to indicate the count of processors. The processor @@ -51,8 +50,7 @@ extern "C" { * * @return The count of processors in the system. */ -#define rtems_smp_get_processor_count() \ - _SMP_Get_processor_count() +uint32_t rtems_get_processor_count(void); /** * @brief Returns the index of the current processor. |