]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vblank: Use spin_(un)lock_irq() in drm_crtc_vblank_reset()
authorLyude Paul <lyude@redhat.com>
Mon, 20 Jul 2020 19:07:32 +0000 (15:07 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 21 Jul 2020 15:08:03 +0000 (11:08 -0400)
commitb9557b105709941604657bbcc10c5b3beabc3bd3
treea401282be071d114e2fad698339d4396eacca3cb
parent83a573a3706323ed1e9ddcc64cf0f118e205956b
drm/vblank: Use spin_(un)lock_irq() in drm_crtc_vblank_reset()

All of the drivers in the kernel tree only call this from one of the
following contexts:

* drm_crtc_funcs->reset
* During initial module load

Since both of these contexts are guaranteed to have interrupts enabled
beforehand, there's no need to use the irqsave/irqrestore variants of
spin_(un)lock(). So, fix this to make the irq context of this function
more obvious.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200720190736.180297-2-lyude@redhat.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_vblank.c