drm/vkms: Reduce critical section
authorMaíra Canal <mcanal@igalia.com>
Mon, 15 May 2023 13:52:03 +0000 (10:52 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Sat, 24 Jun 2023 22:06:10 +0000 (19:06 -0300)
commit6c494ca6fd820ca6f4329bfbdcd048466dc752e2
tree8fe47c85d38dd6ad7751f5a9e3463e365c2042bb
parent26195af5779857ccec3d285a9cacd4a65f126761
drm/vkms: Reduce critical section

The spinlock composer_lock protects the variables crc_pending,
wb_pending, frame_start and frame_end, which are variables that are used
by the composer worker. There is no need to protect the wb_frame_info
information with a spinlock. Therefore, reduce the critical section of
the lock by removing the assignments to the wb_frame_info from the
critical section.

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Arthur Grillo <arthurgrillo@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230515135204.115393-2-mcanal@igalia.com
drivers/gpu/drm/vkms/vkms_writeback.c