diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-17 14:27:09 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-04 13:36:09 +0100 |
commit | b3a4c48ebd1d4cd04dd4390844df840a1c0b9dea (patch) | |
tree | f67ce0b4d71b09c8f1a806e7ae268ebc80b49406 /testsuites/smptests/smpipi01/init.c | |
parent | score: Rename Per_CPU_Control::started (diff) | |
download | rtems-b3a4c48ebd1d4cd04dd4390844df840a1c0b9dea.tar.bz2 |
score: Add _SMP_Online_processors
Diffstat (limited to 'testsuites/smptests/smpipi01/init.c')
-rw-r--r-- | testsuites/smptests/smpipi01/init.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/smptests/smpipi01/init.c b/testsuites/smptests/smpipi01/init.c index db0688c5ee..8c39d18bfb 100644 --- a/testsuites/smptests/smpipi01/init.c +++ b/testsuites/smptests/smpipi01/init.c @@ -161,6 +161,10 @@ static void test_send_message_flood( } for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) { + rtems_test_assert( + _Processor_mask_Is_set(_SMP_Online_processors, cpu_index) + ); + printf( "inter-processor interrupts for processor %" PRIu32 "%s: %" PRIu32 "\n", @@ -169,6 +173,12 @@ static void test_send_message_flood( ctx->counters[cpu_index].value ); } + + for (; cpu_index < CPU_COUNT; ++cpu_index) { + rtems_test_assert( + !_Processor_mask_Is_set(_SMP_Online_processors, cpu_index) + ); + } } static void test(void) |