[rtems commit] score: Remove unused _ISR_lock_Flash()
Sebastian Huber
sebh at rtems.org
Fri Jan 18 12:38:23 UTC 2019
Module: rtems
Branch: master
Commit: 926ed2b020239bee8da65539778b5ee9a5a99bf3
Changeset: http://git.rtems.org/rtems/commit/?id=926ed2b020239bee8da65539778b5ee9a5a99bf3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jan 18 13:32:51 2019 +0100
score: Remove unused _ISR_lock_Flash()
---
cpukit/include/rtems/score/isrlock.h | 31 -------------------------------
testsuites/sptests/sp37/init.c | 2 --
2 files changed, 33 deletions(-)
diff --git a/cpukit/include/rtems/score/isrlock.h b/cpukit/include/rtems/score/isrlock.h
index 0f01bc5..8e13e27 100644
--- a/cpukit/include/rtems/score/isrlock.h
+++ b/cpukit/include/rtems/score/isrlock.h
@@ -356,37 +356,6 @@ RTEMS_INLINE_ROUTINE void _ISR_lock_Context_set_level(
#endif
#endif
-/**
- * @brief Flashes an ISR lock.
- *
- * On uni-processor configurations this a simple _ISR_Local_flash(). On SMP
- * configurations this function releases an SMP lock, restores the interrupt
- * status, then disables interrupts and acquires the SMP lock again.
- *
- * This function can be used in thread and interrupt context.
- *
- * @param[in] _lock The ISR lock control.
- * @param[in] _context The local ISR lock context for an acquire and release
- * pair.
- *
- * @see _ISR_lock_ISR_disable_and_acquire() and
- * _ISR_lock_Release_and_ISR_enable().
- */
-#if defined( RTEMS_SMP )
- #define _ISR_lock_Flash( _lock, _context ) \
- _SMP_lock_Release_and_ISR_enable( \
- &( _lock )->Lock, \
- &( _context )->Lock_context \
- ); \
- _SMP_lock_ISR_disable_and_acquire( \
- &( _lock )->Lock, \
- &( _context )->Lock_context \
- )
-#else
- #define _ISR_lock_Flash( _lock, _context ) \
- _ISR_Local_flash( ( _context )->isr_level )
-#endif
-
#if defined( RTEMS_PROFILING )
#define _ISR_lock_ISR_disable_profile( _context ) \
( _context )->ISR_disable_instant = _CPU_Counter_read();
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c
index 52c02b0..1a63298 100644
--- a/testsuites/sptests/sp37/init.c
+++ b/testsuites/sptests/sp37/init.c
@@ -192,8 +192,6 @@ static void test_isr_locks( void )
_ISR_lock_ISR_disable_and_acquire( &container.lock, &lock_context );
rtems_test_assert( normal_interrupt_level != _ISR_Get_level() );
- _ISR_lock_Flash( &container.lock, &lock_context );
- rtems_test_assert( normal_interrupt_level != _ISR_Get_level() );
_ISR_lock_Release_and_ISR_enable( &container.lock, &lock_context );
rtems_test_assert( normal_interrupt_level == _ISR_Get_level() );
More information about the vc
mailing list