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> |
||
|---|---|---|
| .. | ||
| hwspinlock_core.c | ||
| hwspinlock_internal.h | ||
| Kconfig | ||
| Makefile | ||
| omap_hwspinlock.c | ||
| qcom_hwspinlock.c | ||
| sirf_hwspinlock.c | ||
| sprd_hwspinlock.c | ||
| stm32_hwspinlock.c | ||
| u8500_hsem.c | ||