From d7c388321ad2f250cb35f01dc4c8dda7489c3416 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Thu, 21 Apr 2011 19:05:15 +0000 Subject: 2011-04-21 Jennifer Averett #endif -/*PAGE - * - * _Thread_Enable_dispatch - * - * This kernel routine exits a context switch disable critical section. - * This is the NOT INLINED version. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * INTERRUPT LATENCY: - * dispatch thread - * no dispatch thread - */ - -#if ( (defined(CPU_INLINE_ENABLE_DISPATCH) && \ - (CPU_INLINE_ENABLE_DISPATCH == FALSE)) || \ - (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) -void _Thread_Enable_dispatch( void ) -{ - if ( --_Thread_Dispatch_disable_level ) - return; - _Thread_Dispatch(); -} -#endif - -/*PAGE - * +/** * _Thread_Dispatch * * This kernel routine determines if a dispatch is needed, and if so @@ -72,10 +43,6 @@ void _Thread_Enable_dispatch( void ) * ALTERNATE ENTRY POINTS: * void _Thread_Enable_dispatch(); * - * Input parameters: NONE - * - * Output parameters: NONE - * * INTERRUPT LATENCY: * dispatch thread * no dispatch thread @@ -91,7 +58,7 @@ void _Thread_Dispatch( void ) _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; - _Thread_Dispatch_disable_level = 1; + _Thread_Dispatch_set_disable_level( 1 ); _Thread_Dispatch_necessary = false; _Thread_Executing = heir; @@ -185,7 +152,7 @@ void _Thread_Dispatch( void ) } post_switch: - _Thread_Dispatch_disable_level = 0; + _Thread_Dispatch_set_disable_level( 0 ); _ISR_Enable( level ); -- cgit v1.2.3