From 4bc8d2e71774452e66c619dad98ccab6db8a2324 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 10 Apr 2014 10:58:27 +0200 Subject: 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. --- cpukit/rtems/include/rtems/rtems/smp.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cpukit/rtems/include/rtems/rtems/smp.h') 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. -- cgit v1.2.3