[rtems commit] smptests/smpmrsp01: Update run indicator only once
Sebastian Huber
sebh at rtems.org
Fri Jan 9 13:09:38 UTC 2015
Module: rtems
Branch: master
Commit: ad0743db07f60a4ce629aba75edcfb74281c006d
Changeset: http://git.rtems.org/rtems/commit/?id=ad0743db07f60a4ce629aba75edcfb74281c006d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Dec 22 15:10:32 2014 +0100
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(-)
diff --git a/testsuites/smptests/smpmrsp01/init.c b/testsuites/smptests/smpmrsp01/init.c
index 224cea3..f01caea 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 */
}
}
More information about the vc
mailing list