OSDN Git Service

irqchip/gic-v3-its: Make vlpi_lock a spinlock
authorMarc Zyngier <maz@kernel.org>
Fri, 8 Nov 2019 16:58:05 +0000 (16:58 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 10 Nov 2019 18:48:35 +0000 (18:48 +0000)
commit11635fa26dc7a715f3fc1c351846859e90985ae1
tree1893bb99ce618d29538c2d6a6dd277b2463387fc
parent046b5054f56691c7f5861197a812f3990f66b30e
irqchip/gic-v3-its: Make vlpi_lock a spinlock

The VLPI map is currently a mutex, and that's a bad idea as
this lock can be taken in non-preemptible contexts. Convert
it to a raw spinlock, and turn the memory allocation of the
VLPI map to be atomic.

Reported-by: Heyi Guo <guoheyi@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20191108165805.3071-12-maz@kernel.org
drivers/irqchip/irq-gic-v3-its.c