]> git.baikalelectronics.ru Git - kernel.git/commit
hwspinlock: add the 'in_atomic' API
authorFabien Dessenne <fabien.dessenne@st.com>
Thu, 7 Mar 2019 15:58:23 +0000 (16:58 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 30 Jun 2019 04:08:14 +0000 (21:08 -0700)
commit8b0d244ecb8a2c674d1a445982e7601966e362e1
treecf5d41daeadb6f14a8c41637b7ae29ee05e6747a
parente307bb6add71acf1797707fc7b9da3bef196cbda
hwspinlock: add the 'in_atomic' API

Add the 'in_atomic' mode which can be called from an atomic context.
This mode relies on the existing 'raw' mode (no lock, no preemption/irq
disabling) with the difference that the timeout is not based on jiffies
(jiffies won't increase when irq are disabled) but handled with
busy-waiting udelay() calls.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Documentation/hwspinlock.txt
drivers/hwspinlock/hwspinlock_core.c
include/linux/hwspinlock.h