From f9219db2a95c8285d1be22092572b4236bfe6488 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 5 Apr 2019 08:16:05 +0200 Subject: rtems: Add rtems_scheduler_get_processor_maximum() Add rtems_scheduler_get_processor_maximum() as a replacement for rtems_get_processor_count(). The rtems_get_processor_count() is a bit orphaned. Adopt it by the Scheduler Manager. The count is also misleading, since the processor set may have gaps and the actual count of online processors may be less than the value returned by rtems_get_processor_count(). Update #3732. --- cpukit/rtems/src/getprocessorcount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/rtems/src/getprocessorcount.c') diff --git a/cpukit/rtems/src/getprocessorcount.c b/cpukit/rtems/src/getprocessorcount.c index 438eec6635..40ab5ef9d9 100644 --- a/cpukit/rtems/src/getprocessorcount.c +++ b/cpukit/rtems/src/getprocessorcount.c @@ -16,10 +16,10 @@ #include "config.h" #endif -#include +#include #include -uint32_t rtems_get_processor_count(void) +uint32_t rtems_scheduler_get_processor_maximum(void) { return _SMP_Get_processor_count(); } -- cgit v1.2.3