]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/rockchip: Don't use spin_lock_irqsave in interrupt context
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 20 Feb 2018 13:01:20 +0000 (13:01 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 14 Mar 2018 13:03:36 +0000 (14:03 +0100)
commit1c85f2fa68a4616f437424b18a229d331c699456
treede3c5897f013cdd12ad9281a1ea92adc5cd38baa
parent76f1416e6428dfcebba2134aa8c37963f8f71439
drm/rockchip: Don't use spin_lock_irqsave in interrupt context

The rockchip DRM driver is quite careful to disable interrupts
when taking a lock that is also taken in interrupt context,
which is a good thing.

What is a bit over the top is to use spin_lock_irqsave when
already in interrupt context, as you cannot take another
interrupt again, and disabling interrupt is just pure
overhead.

Switching to the non _irqsave version in interrupt context is
more logical, and less heavy handed.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180220130120.5254-4-marc.zyngier@arm.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c