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/posix/src/sysconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/sysconf.c b/cpukit/posix/src/sysconf.c index c5f66f6f46..7227a6d11c 100644 --- a/cpukit/posix/src/sysconf.c +++ b/cpukit/posix/src/sysconf.c @@ -50,7 +50,7 @@ long sysconf( case _SC_NPROCESSORS_CONF: return (long) rtems_configuration_get_maximum_processors(); case _SC_NPROCESSORS_ONLN: - return (long) rtems_get_processor_count(); + return (long) rtems_scheduler_get_processor_maximum(); case _SC_POSIX_26_VERSION: return (long) _POSIX_26_VERSION; #if defined(__sparc__) -- cgit v1.2.3