drm/v3d: Decouple stats calculation from printing
authorMaíra Canal <mcanal@igalia.com>
Sat, 20 Apr 2024 21:32:12 +0000 (18:32 -0300)
committerMaíra Canal <mcanal@igalia.com>
Tue, 23 Apr 2024 22:32:48 +0000 (19:32 -0300)
commit12d1624ce3d3fb030180384f9725d059538e5605
tree5d030d0619c9d9cc32a2680f74bd757831fe7960
parentda483d079bacceba6c999b4bb2b4c488ead12ed8
drm/v3d: Decouple stats calculation from printing

Create a function to decouple the stats calculation from the printing.
This will be useful in the next step when we add a seqcount to protect
the stats.

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240420213632.339941-6-mcanal@igalia.com
drivers/gpu/drm/v3d/v3d_drv.c
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_sysfs.c