Skip to content
Commit 6150299f authored by Masayuki Ishikawa's avatar Masayuki Ishikawa Committed by Gregory Nutt
Browse files

Merged in masayuki2009/nuttx.nuttx/irq_spinlock (pull request #550)



SMP: Introduce spin_lock_irqsave() and spin_unlock_irqrestore()

These APIs are simplified version of enter_critical_section() and
leave_critical_section() to protect data (e.g. registers) in SMP mode.
By using these APIs inside drivers, performace will be improved.

Signed-off-by: default avatarMasayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: default avatarGregory Nutt <gnutt@nuttx.org>
parent 8bc90a18
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment