diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-22 15:10:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-09 14:03:32 +0100 |
commit | ad0743db07f60a4ce629aba75edcfb74281c006d (patch) | |
tree | c50a404b36eb28bd85a9ac76f34f9f9c39d2abe7 /testsuites/smptests | |
parent | smp: Add and use _SMP_Should_start_processor() (diff) | |
download | rtems-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 '')
-rw-r--r-- | testsuites/smptests/smpmrsp01/init.c | 4 |
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 */ } } |