forked from Imagelibrary/rtems
score: _Thread_Dispatch_increment_disable_level()
Avoid _Thread_Dispatch_increment_disable_level() and _Thread_Dispatch_decrement_disable_level() and thus the Giant lock. This is a preparation to remove the Giant lock. Update #2555.
This commit is contained in:
@@ -133,7 +133,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_increment_disable_level();
|
||||
_Thread_Dispatch_disable();
|
||||
|
||||
#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
|
||||
if ( _ISR_Nest_level == 0 )
|
||||
@@ -155,7 +155,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_decrement_disable_level();
|
||||
_Thread_Dispatch_unnest( _Per_CPU_Get() );
|
||||
|
||||
_ISR_Nest_level--;
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_increment_disable_level();
|
||||
_Thread_Dispatch_disable();
|
||||
|
||||
#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
|
||||
if ( _ISR_Nest_level == 0 )
|
||||
@@ -156,7 +156,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_decrement_disable_level();
|
||||
_Thread_Dispatch_unnest( _Per_CPU_Get() );
|
||||
|
||||
_ISR_Nest_level--;
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_increment_disable_level();
|
||||
_Thread_Dispatch_disable();
|
||||
|
||||
#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
|
||||
if ( _ISR_Nest_level == 0 )
|
||||
@@ -80,7 +80,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_decrement_disable_level();
|
||||
_Thread_Dispatch_enable( _Per_CPU_Get() );
|
||||
|
||||
_ISR_Nest_level--;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_increment_disable_level();
|
||||
_Thread_Dispatch_disable();
|
||||
|
||||
#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
|
||||
if ( _ISR_Nest_level == 0 )
|
||||
@@ -57,7 +57,7 @@ void __ISR_Handler( uint32_t vector)
|
||||
|
||||
_ISR_Disable( level );
|
||||
|
||||
_Thread_Dispatch_decrement_disable_level();
|
||||
_Thread_Dispatch_unnest( _Per_CPU_Get() );
|
||||
|
||||
_ISR_Nest_level--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user