summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/isr.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/include/rtems/score/isr.h')
-rw-r--r--cpukit/score/include/rtems/score/isr.h36
1 files changed, 1 insertions, 35 deletions
diff --git a/cpukit/score/include/rtems/score/isr.h b/cpukit/score/include/rtems/score/isr.h
index dcb25e1dff..f76cbcbda8 100644
--- a/cpukit/score/include/rtems/score/isr.h
+++ b/cpukit/score/include/rtems/score/isr.h
@@ -22,7 +22,6 @@
#define _RTEMS_SCORE_ISR_H
#include <rtems/score/isrlevel.h>
-#include <rtems/score/percpu.h>
/**
* @defgroup ScoreISR ISR Handler
@@ -136,34 +135,6 @@ void _ISR_Handler( void );
void _ISR_Dispatch( void );
/**
- * @brief Returns the current ISR nest level
- *
- * This function can be called in any context. On SMP configurations
- * interrupts are disabled to ensure that the processor index is used
- * consistently.
- *
- * @return The current ISR nest level.
- */
-RTEMS_INLINE_ROUTINE uint32_t _ISR_Get_nest_level( void )
-{
- uint32_t isr_nest_level;
-
- #if defined( RTEMS_SMP )
- ISR_Level level;
-
- _ISR_Disable_without_giant( level );
- #endif
-
- isr_nest_level = _ISR_Nest_level;
-
- #if defined( RTEMS_SMP )
- _ISR_Enable_without_giant( level );
- #endif
-
- return isr_nest_level;
-}
-
-/**
* @brief Checks if an ISR in progress.
*
* This function returns true if the processor is currently servicing
@@ -172,12 +143,7 @@ RTEMS_INLINE_ROUTINE uint32_t _ISR_Get_nest_level( void )
*
* @retval This methods returns true when called from an ISR.
*/
-#if (CPU_PROVIDES_ISR_IS_IN_PROGRESS == TRUE)
- bool _ISR_Is_in_progress( void );
-#else
- #define _ISR_Is_in_progress() \
- (_ISR_Get_nest_level() != 0)
-#endif
+bool _ISR_Is_in_progress( void );
#ifdef __cplusplus
}