mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
fixup: add Kconfig option
This commit is contained in:
@@ -184,7 +184,7 @@ struct rt_spinlock
|
||||
#define _SPIN_UNLOCK_DEBUG_OWNER(lock) RT_UNUSED(lock)
|
||||
#endif /* RT_DEBUGING_SPINLOCK */
|
||||
|
||||
#ifdef RT_USING_DEBUG
|
||||
#ifdef RT_DEBUGING_CRITICAL
|
||||
#define _SPIN_LOCK_DEBUG_CRITICAL(lock) \
|
||||
do \
|
||||
{ \
|
||||
@@ -197,11 +197,11 @@ struct rt_spinlock
|
||||
(critical) = (lock)->critical_level; \
|
||||
} while (0)
|
||||
|
||||
#else /* !RT_USING_DEBUG */
|
||||
#else /* !RT_DEBUGING_CRITICAL */
|
||||
#define _SPIN_LOCK_DEBUG_CRITICAL(lock) RT_UNUSED(lock)
|
||||
#define _SPIN_UNLOCK_DEBUG_CRITICAL(lock, critical) do {critical = 0; RT_UNUSED(lock);} while (0)
|
||||
|
||||
#endif /* RT_USING_DEBUG */
|
||||
#endif /* RT_DEBUGING_CRITICAL */
|
||||
|
||||
#define RT_SPIN_LOCK_DEBUG(lock) \
|
||||
do \
|
||||
|
||||
Reference in New Issue
Block a user