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/sptests/sp37/init.c | |
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/sptests/sp37/init.c')
-rw-r--r-- | testsuites/sptests/sp37/init.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c index cec6d06824..68b28a6703 100644 --- a/testsuites/sptests/sp37/init.c +++ b/testsuites/sptests/sp37/init.c @@ -402,8 +402,9 @@ rtems_timer_service_routine test_unblock_task( void *arg ) { - bool in_isr; - rtems_status_code status; + bool in_isr; + rtems_status_code status; + Per_CPU_Control *cpu_self; in_isr = rtems_interrupt_is_in_progress(); status = rtems_task_is_suspended( blocked_task_id ); @@ -420,9 +421,9 @@ rtems_timer_service_routine test_unblock_task( } blocked_task_status = 2; - _Thread_Disable_dispatch(); + cpu_self = _Thread_Dispatch_disable(); status = rtems_task_resume( blocked_task_id ); - _Thread_Unnest_dispatch(); + _Thread_Dispatch_enable( cpu_self ); directive_failed( status, "rtems_task_resume" ); } |