summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpmrsp01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-22 15:10:32 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-09 14:03:32 +0100
commitad0743db07f60a4ce629aba75edcfb74281c006d (patch)
treec50a404b36eb28bd85a9ac76f34f9f9c39d2abe7 /testsuites/smptests/smpmrsp01
parentsmp: Add and use _SMP_Should_start_processor() (diff)
downloadrtems-ad0743db07f60a4ce629aba75edcfb74281c006d.tar.bz2
smptests/smpmrsp01: Update run indicator only once
On the Freescale T2080 the excessive concurrent write/read lead to a livelock condition.
Diffstat (limited to 'testsuites/smptests/smpmrsp01')
-rw-r--r--testsuites/smptests/smpmrsp01/init.c4
1 files changed, 3 insertions, 1 deletions
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 */
}
}