Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spinlock: add sched_lock to spin_lock_irqsave_wo_note
reason: We aim to replace big locks with smaller ones. So we will use spin_lock_irqsave extensively to replace enter_critical_section in the subsequent process. We imitate the implementation of Linux by adding sched_lock to spin_lock_irqsave in order to address scenarios where sem_post occurs within spin_lock_irqsave, which can lead to spinlock failures and deadlocks. Signed-off-by: hujun5 <[email protected]>
- Loading branch information