From 577293f0a959b5368c073d51f3404c57b3680d14 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sun, 28 Apr 2019 14:31:10 +0200 Subject: score: Add _SMP_Synchronize() --- testsuites/smptests/smpipi01/init.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'testsuites/smptests/smpipi01/init.c') diff --git a/testsuites/smptests/smpipi01/init.c b/testsuites/smptests/smpipi01/init.c index 18d96dafaf..3cc7a13e2d 100644 --- a/testsuites/smptests/smpipi01/init.c +++ b/testsuites/smptests/smpipi01/init.c @@ -18,7 +18,6 @@ #include #include -#include #include #include @@ -195,10 +194,12 @@ static void test_send_message_flood( } for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) { + Per_CPU_Control *cpu_self; uint32_t i; - /* Wait 1us so that all outstanding messages have been processed */ - rtems_counter_delay_nanoseconds(1000000); + cpu_self = _Thread_Dispatch_disable(); + _SMP_Synchronize(); + _Thread_Dispatch_enable(cpu_self); for (i = 0; i < cpu_count; ++i) { if (i != cpu_index) { -- cgit v1.2.3