summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2018-04-08 06:06:57 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-04-18 00:49:21 +0300
commit1e6c06a7e88c251d8a30271ad5206fbd967a4576 (patch)
tree42921ec0798d2d306cec575c10f7b9317cac9b56 /sound
parent66742b19e5e0d01297d355cc445d4920b648821b (diff)
downloadlinux-1e6c06a7e88c251d8a30271ad5206fbd967a4576.tar.xz
hwspinlock: Introduce one new mode for hwspinlock
In some scenarios, user need do some time-consuming or sleepable operations under the hardware spinlock protection for synchronization between the multiple subsystems. For example, there is one PMIC efuse on Spreadtrum platform, which need to be accessed under one hardware lock. But during the hardware lock protection, the efuse operation is time-consuming to almost 5 ms, so we can not disable the interrupts or preemption so long in this case. Thus we can introduce one new mode to indicate that we just acquire the hardware lock and do not disable interrupts or preemption, meanwhile we should force user to protect the hardware lock with mutex or spinlock to avoid dead-lock. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions