udl-kms: use spin_lock_irq instead of spin_lock_irqsave
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 3 Jun 2018 14:41:02 +0000 (16:41 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jul 2018 22:11:12 +0000 (08:11 +1000)
commitc2f53119b410047e5d97de2a5ec74157d2e58986
tree1902f04ef82f53d5061814ecee670fea0589f095
parent58cba7c222e8c87bb6b61fcba21d1536145221b0
udl-kms: use spin_lock_irq instead of spin_lock_irqsave

spin_lock_irqsave and spin_unlock_irqrestore is inteded to be called from
a context where it is unknown if interrupts are enabled or disabled (such
as interrupt handlers). From a process context, we should call
spin_lock_irq and spin_unlock_irq, that avoids the costly pushf and popf
instructions.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_main.c
drivers/gpu/drm/udl/udl_modeset.c