mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user