nuttx
nuttx copied to clipboard
Crtical section should be replaced with spinlock as much as we can to improve SMP performance
To support the wait, the critical section has much more complex logic than spinlock. All code which don't require sleep is better to switch to spinlock.
related issue: https://github.com/apache/incubator-nuttx/issues/2213