mirror of
https://github.com/apache/nuttx.git
synced 2026-05-12 17:58:10 +08:00
bb8d16f422
Add spinlock protection to sched_note_preemption and nxsched_critmon_preemption. Ensures thread-safe access to global state in preemption notification and critical monitoring, preventing race conditions in SMP and interrupt contexts. Signed-off-by: hujun5 <hujun5@xiaomi.com>