diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-05 08:16:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-09 08:06:46 +0200 |
commit | f9219db2a95c8285d1be22092572b4236bfe6488 (patch) | |
tree | c168ac7fdf7458cea6d7146584b2adb38d47f6a1 /testsuites/smptests/smpschedaffinity02/init.c | |
parent | 03c9f2406127b71ad5abdfd02af1609f8a67f012 (diff) |
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.
Diffstat (limited to '')
-rw-r--r-- | testsuites/smptests/smpschedaffinity02/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/smptests/smpschedaffinity02/init.c b/testsuites/smptests/smpschedaffinity02/init.c index d8d2c23172..0ebdd14efa 100644 --- a/testsuites/smptests/smpschedaffinity02/init.c +++ b/testsuites/smptests/smpschedaffinity02/init.c @@ -128,7 +128,7 @@ static void test(void) cpu_set_t cpuset; /* Get the number of processors that we are using. */ - cpu_count = rtems_get_processor_count(); + cpu_count = rtems_scheduler_get_processor_maximum(); if (cpu_count < NUM_CPUS) { printf("Error: Test requires at least 2 cpus\n"); return; |