From ad0743db07f60a4ce629aba75edcfb74281c006d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 22 Dec 2014 15:10:32 +0100 Subject: smptests/smpmrsp01: Update run indicator only once On the Freescale T2080 the excessive concurrent write/read lead to a livelock condition. --- testsuites/smptests/smpmrsp01/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testsuites/smptests/smpmrsp01') diff --git a/testsuites/smptests/smpmrsp01/init.c b/testsuites/smptests/smpmrsp01/init.c index 224cea3041..f01caead1a 100644 --- a/testsuites/smptests/smpmrsp01/init.c +++ b/testsuites/smptests/smpmrsp01/init.c @@ -212,8 +212,10 @@ static void run_task(rtems_task_argument arg) { volatile bool *run = (volatile bool *) arg; + *run = true; + while (true) { - *run = true; + /* Do nothing */ } } -- cgit v1.2.3