diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-26 14:10:25 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-30 09:53:23 +0200 |
commit | fe52e7c07cc330e98484fd4acc38586722b93132 (patch) | |
tree | 3fb3e92e5174a2c2e636eb53efd9cacf36ab58c4 /testsuites/smptests/smpschedule01/init.c | |
parent | smp: Use Thread_Control.is_executing (diff) | |
download | rtems-fe52e7c07cc330e98484fd4acc38586722b93132.tar.bz2 |
smp: Add and use _Per_CPU_Get()
Add and use _Per_CPU_Get_by_index() and _Per_CPU_Get_index(). Add
_Per_CPU_Send_interrupt(). This avoids direct access of
_Per_CPU_Information.
Diffstat (limited to 'testsuites/smptests/smpschedule01/init.c')
-rw-r--r-- | testsuites/smptests/smpschedule01/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/smptests/smpschedule01/init.c b/testsuites/smptests/smpschedule01/init.c index 58ff3ebcc3..d1c171b9b1 100644 --- a/testsuites/smptests/smpschedule01/init.c +++ b/testsuites/smptests/smpschedule01/init.c @@ -71,12 +71,12 @@ static bool is_per_cpu_state_ok(void) uint32_t i; for (i = 0; i < n; ++i) { - const Thread_Control *thread = _Per_CPU_Information[i].executing; + const Thread_Control *thread = _Per_CPU_Get_by_index(i)->executing; uint32_t count = 0; uint32_t j; for (j = 0; j < n; ++j) { - const Per_CPU_Control *cpu = &_Per_CPU_Information[j]; + const Per_CPU_Control *cpu = _Per_CPU_Get_by_index(j); const Thread_Control *executing = cpu->executing; const Thread_Control *heir = cpu->heir; |