xiaoxiang781216 opened a new issue #2213:
URL: https://github.com/apache/incubator-nuttx/issues/2213


   Right now, NuttX support one big spin lock:
   ```
   irqstate_t spin_lock_irqsave(void);
   void spin_unlock_irqrestore(irqstate_t flags);
   ```
   Which isn't good for SMP machine. Compare with 
Linux(https://elixir.bootlin.com/linux/latest/source/include/linux/irqflags.h#L200),
 the above API should rename to:
   ```
   irqstate_t local_irq_irqsave(void);
   void local_irqrestore(irqstate_t flags);
   ```
   and add the real spinlock(multiple instance) support:
   https://www.kernel.org/doc/Documentation/locking/spinlocks.txt
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to