fixup: add Kconfig option

This commit is contained in:
Shell
2024-04-19 13:13:31 +08:00
committed by Meco Man
parent 8c4db32d04
commit d1bb01621b
4 changed files with 15 additions and 9 deletions

View File

@@ -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 \