diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-07 08:14:30 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-07 13:02:22 +0200 |
commit | 836f4545dcb75cb399bb498e7a62c20541dac84f (patch) | |
tree | a873418fd14e3b80eeceeb463d029cc31fb3517d /testsuites/smptests | |
parent | 26ccd139dc42c0abaafd5532729cb7d32afac9cf (diff) |
Fix CPU_COPY() usage
The original CPU_COPY() support of Newlib <sys/cpuset.h> had the
parameters in the wrong order. This is fixed in Newlib since
2017-05-22.
Update #3023.
Diffstat (limited to 'testsuites/smptests')
-rw-r--r-- | testsuites/smptests/smpaffinity01/init.c | 4 | ||||
-rw-r--r-- | testsuites/smptests/smppsxaffinity02/init.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/smptests/smpaffinity01/init.c b/testsuites/smptests/smpaffinity01/init.c index c500cd0e5f..cf95fc54d1 100644 --- a/testsuites/smptests/smpaffinity01/init.c +++ b/testsuites/smptests/smpaffinity01/init.c @@ -177,7 +177,7 @@ void Validate_affinity(void ) /* Change the affinity for each low priority task */ puts("Init - Change affinity on Low priority tasks"); - CPU_COPY(&cpuset1, &cpuset0); + CPU_COPY(&cpuset0, &cpuset1); for (i=0; i<cpu_count; i++){ CPU_CLR(i, &cpuset1); @@ -193,7 +193,7 @@ void Validate_affinity(void ) } puts("Init - Validate affinity on Low priority tasks"); - CPU_COPY(&cpuset1, &cpuset0); + CPU_COPY(&cpuset0, &cpuset1); for (i=0; i<cpu_count; i++){ CPU_CLR(i, &cpuset1); diff --git a/testsuites/smptests/smppsxaffinity02/init.c b/testsuites/smptests/smppsxaffinity02/init.c index e8acfb1b21..462462f275 100644 --- a/testsuites/smptests/smppsxaffinity02/init.c +++ b/testsuites/smptests/smppsxaffinity02/init.c @@ -168,7 +168,7 @@ void Validate_affinity(void ) /* Change the affinity for each low priority task */ puts("Init - Change affinity on Low priority tasks"); - CPU_COPY(&cpuset1, &cpuset0); + CPU_COPY(&cpuset0, &cpuset1); for (i=0; i<cpu_count; i++){ CPU_CLR(i, &cpuset1); @@ -183,7 +183,7 @@ void Validate_affinity(void ) } puts("Init - Validate affinity on Low priority tasks"); - CPU_COPY(&cpuset1, &cpuset0); + CPU_COPY(&cpuset0, &cpuset1); for (i=0; i<cpu_count; i++){ CPU_CLR(i, &cpuset1); |