mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
c712a00620
We use enter_critical_section to protect the read and write of priv structures, sched_lock is mainly used to prevent active context switching caused by nxsem_post. We do not actively switch contexts when reading and writing priv structures, so sched_lock can be removed. Signed-off-by: hujun5 <hujun5@xiaomi.com>