diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-27 11:08:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-28 19:07:37 +0200 |
commit | 4adaed7328e39eac4fe1879cba61919e74965cc8 (patch) | |
tree | 6289a5896a12a38381921063622daaa1196d40de /testsuites/smptests/smpfatal01/init.c | |
parent | libcsupport: Consistent rtems_putc() output (diff) | |
download | rtems-4adaed7328e39eac4fe1879cba61919e74965cc8.tar.bz2 |
score: Remove processor event broadcast/receive
Remove _CPU_SMP_Processor_event_broadcast() and
_CPU_SMP_Processor_event_receive(). These functions are hard to use since they
are subject to the lost wake up problem.
Diffstat (limited to '')
-rw-r--r-- | testsuites/smptests/smpfatal01/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/smptests/smpfatal01/init.c b/testsuites/smptests/smpfatal01/init.c index 3f276a48fc..0fd5f3fc46 100644 --- a/testsuites/smptests/smpfatal01/init.c +++ b/testsuites/smptests/smpfatal01/init.c @@ -58,7 +58,7 @@ static void fatal_extension( for (cpu = 0; cpu < MAX_CPUS; ++cpu) { const Per_CPU_Control *per_cpu = _Per_CPU_Get_by_index( cpu ); - Per_CPU_State state = per_cpu->state; + Per_CPU_State state = _Per_CPU_Get_state(per_cpu); assert(state == PER_CPU_STATE_SHUTDOWN); } @@ -92,7 +92,7 @@ static rtems_status_code test_driver_init( for (cpu = 0; cpu < MAX_CPUS; ++cpu) { const Per_CPU_Control *per_cpu = _Per_CPU_Get_by_index( cpu ); - Per_CPU_State state = per_cpu->state; + Per_CPU_State state = _Per_CPU_Get_state(per_cpu); if (cpu == self) { assert(state == PER_CPU_STATE_INITIAL); @@ -110,7 +110,7 @@ static rtems_status_code test_driver_init( uint32_t other = (self + 1) % cpu_count; Per_CPU_Control *per_cpu = _Per_CPU_Get_by_index( other ); - per_cpu->state = PER_CPU_STATE_SHUTDOWN; + _Per_CPU_Set_state(per_cpu, PER_CPU_STATE_SHUTDOWN); } else { TEST_END(); exit(0); |