summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpcache01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-26 10:26:49 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-04 07:46:16 +0100
commit0324410836a62e2c8e5b29aef49f34e0880c1104 (patch)
tree3d38e05632bb7ce2b456b361fb14aef2bc5da202 /testsuites/smptests/smpcache01
parentxdr_float.c: Fix typo (diff)
downloadrtems-0324410836a62e2c8e5b29aef49f34e0880c1104.tar.bz2
smptests: Do not use Giant directly
This ensures that thread dispatching is disabled. A Giant acquire/release pair must take place in the same processor.
Diffstat (limited to 'testsuites/smptests/smpcache01')
-rw-r--r--testsuites/smptests/smpcache01/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/smptests/smpcache01/init.c b/testsuites/smptests/smpcache01/init.c
index 39808b3fd9..01d6e1ea7f 100644
--- a/testsuites/smptests/smpcache01/init.c
+++ b/testsuites/smptests/smpcache01/init.c
@@ -95,14 +95,14 @@ static void standard_funcs_giant_taken_test( size_t set_size,
cpu_set_t *cpu_set, SMP_barrier_State *bs )
{
if ( rtems_get_current_processor() == 0)
- _Giant_Acquire();
+ _Thread_Disable_dispatch();
_SMP_barrier_Wait( &ctx.barrier, bs, rtems_get_processor_count() );
cache_manager_smp_functions( set_size, cpu_set );
if ( rtems_get_current_processor() == 0)
- _Giant_Release();
+ _Thread_Enable_dispatch();
}
static void test_func_test( size_t set_size, cpu_set_t *cpu_set,
@@ -145,7 +145,7 @@ static void test_func_giant_taken_test( size_t set_size, cpu_set_t *cpu_set,
ctx.count[rtems_get_current_processor()] = 0;
if ( rtems_get_current_processor() == 0)
- _Giant_Acquire();
+ _Thread_Disable_dispatch();
_SMP_barrier_Wait( &ctx.barrier, bs, rtems_get_processor_count() );
@@ -157,7 +157,7 @@ static void test_func_giant_taken_test( size_t set_size, cpu_set_t *cpu_set,
rtems_get_processor_count() );
if ( rtems_get_current_processor() == 0)
- _Giant_Release();
+ _Thread_Enable_dispatch();
}
static void cmlog( const char* str )