summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpschedaffinity04
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/smptests/smpschedaffinity04')
-rw-r--r--testsuites/smptests/smpschedaffinity04/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/smptests/smpschedaffinity04/init.c b/testsuites/smptests/smpschedaffinity04/init.c
index 329b5a78c4..64250b9d63 100644
--- a/testsuites/smptests/smpschedaffinity04/init.c
+++ b/testsuites/smptests/smpschedaffinity04/init.c
@@ -75,7 +75,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 < 2) {
printf("Error: Test requires at least 2 cpus\n");
return;