Revert "sched/spinlock: remove nesting spinlock support"

This reverts commit 5aa13bc490.
This commit is contained in:
chao an
2024-10-14 10:43:00 +08:00
committed by Xiang Xiao
parent 39c1c871a0
commit ce42a9affc
2 changed files with 33 additions and 6 deletions
+4
View File
@@ -43,6 +43,10 @@
volatile spinlock_t g_irq_spin = SP_UNLOCKED;
/* Handles nested calls to spin_lock_irqsave and spin_unlock_irqrestore */
volatile uint8_t g_irq_spin_count[CONFIG_SMP_NCPUS];
#ifdef CONFIG_RW_SPINLOCK
/* Used for access control */