summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpscheduler01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/smptests/smpscheduler01/init.c')
-rw-r--r--testsuites/smptests/smpscheduler01/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/smptests/smpscheduler01/init.c b/testsuites/smptests/smpscheduler01/init.c
index 10ac735ca2..db61933f7e 100644
--- a/testsuites/smptests/smpscheduler01/init.c
+++ b/testsuites/smptests/smpscheduler01/init.c
@@ -17,6 +17,7 @@
#endif
#include <rtems.h>
+#include <rtems/score/threadimpl.h>
#include "tmacros.h"
@@ -89,8 +90,8 @@ static bool is_per_cpu_state_ok(void)
++count;
}
- ok = ok && executing->cpu == cpu;
- ok = ok && heir->cpu == cpu;
+ ok = ok && _Thread_Get_CPU( executing ) == cpu;
+ ok = ok && _Thread_Get_CPU( heir ) == cpu;
}
ok = ok && (count == 1);