sched/spinlock: remove nesting spinlock support

developers must be careful to hold spinlocks and ensure all
of protected code is under control, so remove support for nested
spinlocks to improve performance.

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an
2024-10-11 12:40:50 +08:00
committed by Xiang Xiao
parent 302d2f3b56
commit 5aa13bc490
2 changed files with 6 additions and 33 deletions
-4
View File
@@ -43,10 +43,6 @@
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 */