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/smpscheduler02 | |
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 'testsuites/smptests/smpscheduler02')
-rw-r--r-- | testsuites/smptests/smpscheduler02/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/smptests/smpscheduler02/init.c b/testsuites/smptests/smpscheduler02/init.c index 1a88c6e4d4..e6480aa819 100644 --- a/testsuites/smptests/smpscheduler02/init.c +++ b/testsuites/smptests/smpscheduler02/init.c @@ -134,7 +134,7 @@ static void test_scheduler_add_remove_processors(void) sc = rtems_scheduler_remove_processor(scheduler_a_id, 0); rtems_test_assert(sc == RTEMS_RESOURCE_IN_USE); - if (rtems_get_processor_count() > 1) { + if (rtems_scheduler_get_processor_maximum() > 1) { rtems_id scheduler_id; rtems_id scheduler_b_id; rtems_id task_id; @@ -224,7 +224,7 @@ static void test(void) rtems_test_assert(rtems_scheduler_get_processor() == 0); - cpu_count = rtems_get_processor_count(); + cpu_count = rtems_scheduler_get_processor_maximum(); main_task_id = rtems_task_self(); CPU_ZERO(&first_cpu); |