Skip to content
Commit 176d23a7 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: disable IRQ in user interrupts spinlock



Because this spinlock is taken in an interrupt handler, we must use
the spin_lock_irqsave/irqrestore version to disable the interrupts
on the local CPU. Otherwise, we can have a potential deadlock (if
the interrupt handler is scheduled to run on the same cpu that the
code who took the lock was running on).

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 71731090
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment