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.
This commit is contained in:
Sebastian Huber
2019-04-05 08:16:05 +02:00
parent 03c9f24061
commit f9219db2a9
66 changed files with 161 additions and 161 deletions

View File

@@ -239,7 +239,7 @@ static uint32_t find_free_cpu(test_context *ctx)
uint32_t i;
uint32_t n;
n = rtems_get_processor_count();
n = rtems_scheduler_get_processor_maximum();
pthread_mutex_lock(&ctx->mtx);