]> asedeno.scripts.mit.edu Git - linux.git/commit
udlfb: use spin_lock_irq instead of spin_lock_irqsave
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 25 Jul 2018 13:41:57 +0000 (15:41 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 25 Jul 2018 13:41:57 +0000 (15:41 +0200)
commitcb782a3fa952478177341e67275885ae52340f99
tree51e77534b367491c679d4c0e15db6a51dff62d55
parent037dde4113b5d1f886cb621d538438e7af7b6967
udlfb: 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: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/udlfb.c