]> git.baikalelectronics.ru Git - kernel.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)
commit42e031f60a299f9aed0295cb05c4265422812cd8
tree51e77534b367491c679d4c0e15db6a51dff62d55
parent4d516b7b00955658985235a55e41b94eb6d2cad4
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