spinlock: Better recursive spinlock implementation.

This commit provided a better recursive spinlock implementation with
less memory-overhead and better performance.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
ouyangxiangzhen
2025-06-09 11:19:52 +08:00
committed by Xiang Xiao
parent 0717928b0e
commit d9bbdeb6fe
5 changed files with 64 additions and 42 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
****************************************************************************/
#ifndef __ASSEMBLY__
extern struct rspinlock_s g_segger_lock;
extern rspinlock_t g_segger_lock;
#endif
#ifdef CONFIG_SEGGER_RTT_UNCACHED_OFF_VARIABLE