mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
eb47312518
Before atomic is ready on every platform, we need a way to protect quota, previously it's protected by net_lock, but this makes netpkt_xxx interfaces unable to be called under interrupt context, so changed to spin lock. Also, we can easily change them into atomic under this implementation. Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>