Changeset 836f454 in rtems for testsuites/smptests


Ignore:
Timestamp:
Jun 7, 2017, 6:14:30 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b06dbb26
Parents:
26ccd139
git-author:
Sebastian Huber <sebastian.huber@…> (06/07/17 06:14:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/07/17 11:02:22)
Message:

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.

Location:
testsuites/smptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpaffinity01/init.c

    r26ccd139 r836f454  
    178178  /* Change the affinity for each low priority task */
    179179  puts("Init - Change affinity on Low priority tasks");
    180   CPU_COPY(&cpuset1, &cpuset0);
     180  CPU_COPY(&cpuset0, &cpuset1);
    181181  for (i=0; i<cpu_count; i++){
    182182
     
    194194
    195195  puts("Init - Validate affinity on Low priority tasks");
    196   CPU_COPY(&cpuset1, &cpuset0);
     196  CPU_COPY(&cpuset0, &cpuset1);
    197197  for (i=0; i<cpu_count; i++){
    198198    CPU_CLR(i, &cpuset1);
  • testsuites/smptests/smppsxaffinity02/init.c

    r26ccd139 r836f454  
    169169  /* Change the affinity for each low priority task */
    170170  puts("Init - Change affinity on Low priority tasks");
    171   CPU_COPY(&cpuset1, &cpuset0);
     171  CPU_COPY(&cpuset0, &cpuset1);
    172172  for (i=0; i<cpu_count; i++){
    173173
     
    184184
    185185  puts("Init - Validate affinity on Low priority tasks");
    186   CPU_COPY(&cpuset1, &cpuset0);
     186  CPU_COPY(&cpuset0, &cpuset1);
    187187  for (i=0; i<cpu_count; i++){
    188188    CPU_CLR(i, &cpuset1);
Note: See TracChangeset for help on using the changeset viewer.