drm/vc4: Optimise vc4_hvs_dlist_free_work to only read frcnt and active once
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 4 Jan 2024 12:39:33 +0000 (12:39 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:29 +0000 (11:35 +0000)
commita6c3c3e5a2b11fc6f6d1a4c6033045543b581b2a
treeaaed1870e1468b06b7c35d2975f030e957920208
parent86e19f4d77c13e96d436351aef1af2a813884ef5
drm/vc4: Optimise vc4_hvs_dlist_free_work to only read frcnt and active once

vc4_hvs_dlist_free_work was iterating through the list of stale
dlist entries and reading the frame count and active flags from
the hardware for each one.

Read the frame count and active flags once, and then use the
cached value in the loop.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_hvs.c