diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-17 15:43:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 07:49:41 +0200 |
commit | dab902d5b2688fe958118299f7d44d1adbf13878 (patch) | |
tree | fa54fcf607d93dd03017f9d0eb1f82ca0f55aca4 /testsuites/libtests | |
parent | score: Avoid Giant _Objects_Extend_information() (diff) | |
download | rtems-dab902d5b2688fe958118299f7d44d1adbf13878.tar.bz2 |
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.
Diffstat (limited to 'testsuites/libtests')
-rw-r--r-- | testsuites/libtests/malloctest/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/libtests/malloctest/init.c b/testsuites/libtests/malloctest/init.c index 6123977ff7..fb22e4d76f 100644 --- a/testsuites/libtests/malloctest/init.c +++ b/testsuites/libtests/malloctest/init.c @@ -95,10 +95,10 @@ static void test_realloc(void) rtems_test_assert( malloc_walk_ok ); puts( "malloc_walk - in critical section path" ); - _Thread_Disable_dispatch(); + _Thread_Dispatch_disable(); malloc_walk_ok = malloc_walk( 1234, false ); rtems_test_assert( malloc_walk_ok ); - _Thread_Enable_dispatch(); + _Thread_Dispatch_enable( _Per_CPU_Get() ); /* * Realloc with a bad pointer to force a point @@ -1142,9 +1142,9 @@ static void test_rtems_heap_allocate_aligned_with_boundary(void) rtems_test_assert( p != NULL ); free(p); - _Thread_Disable_dispatch(); + _Thread_Dispatch_disable(); p = rtems_heap_allocate_aligned_with_boundary(1, 1, 1); - _Thread_Enable_dispatch(); + _Thread_Dispatch_enable( _Per_CPU_Get() ); rtems_test_assert( p == NULL ); } |