Revert "sched/spinlock: remove nesting spinlock support"

This reverts commit 5aa13bc490.
This commit is contained in:
chenrun1
2024-10-12 21:20:58 +08:00
committed by archer
parent 505adfa277
commit 9e81f5efac
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 */