summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpcache01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/smptests/smpcache01/init.c')
-rw-r--r--testsuites/smptests/smpcache01/init.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/testsuites/smptests/smpcache01/init.c b/testsuites/smptests/smpcache01/init.c
index e9cee1eec5..878a015bf1 100644
--- a/testsuites/smptests/smpcache01/init.c
+++ b/testsuites/smptests/smpcache01/init.c
@@ -126,15 +126,12 @@ static void call_tests_isr_disabled( SMP_barrier_State *bs )
broadcast_test_init();
for (i = 0; i < RTEMS_ARRAY_SIZE( test_cases ); ++i) {
- Per_CPU_Control *cpu_self;
- ISR_Level isr_level;
+ ISR_Level isr_level;
- cpu_self = _Thread_Dispatch_disable();
_ISR_Local_disable( isr_level );
barrier( bs );
( *test_cases[ i ] )();
_ISR_Local_enable( isr_level );
- _Thread_Dispatch_enable( cpu_self );
barrier( bs );
}