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/src/getprocessorcount.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 cpukit/rtems/src/getprocessorcount.c (limited to 'cpukit/rtems/src/getprocessorcount.c') diff --git a/cpukit/rtems/src/getprocessorcount.c b/cpukit/rtems/src/getprocessorcount.c new file mode 100644 index 0000000000..438eec6635 --- /dev/null +++ b/cpukit/rtems/src/getprocessorcount.c @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2014 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#if HAVE_CONFIG_H + #include "config.h" +#endif + +#include +#include + +uint32_t rtems_get_processor_count(void) +{ + return _SMP_Get_processor_count(); +} -- cgit v1.2.3