From dab902d5b2688fe958118299f7d44d1adbf13878 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 17 May 2016 15:43:31 +0200 Subject: testsuites: Avoid Giant lock Replace _Thread_Disable_dispatch() with _Thread_Dispatch_disable(). Replace _Thread_Enable_dispatch() with _Thread_Dispatch_enable(). This is a preparation to remove the Giant lock. Update #2555. --- testsuites/sptests/spintrcritical20/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testsuites/sptests/spintrcritical20/init.c') diff --git a/testsuites/sptests/spintrcritical20/init.c b/testsuites/sptests/spintrcritical20/init.c index 85c1645b5c..9c9b5f0903 100644 --- a/testsuites/sptests/spintrcritical20/init.c +++ b/testsuites/sptests/spintrcritical20/init.c @@ -71,8 +71,9 @@ static bool test_body(void *arg) { test_context *ctx = arg; int busy; + Per_CPU_Control *cpu_self; - _Thread_Disable_dispatch(); + cpu_self = _Thread_Dispatch_disable(); rtems_test_assert( ctx->semaphore_task_tcb->Wait.return_code @@ -105,7 +106,7 @@ static bool test_body(void *arg) break; } - _Thread_Enable_dispatch(); + _Thread_Dispatch_enable(cpu_self); return ctx->thread_queue_was_null && ctx->status_was_successful -- cgit v1.2.3