aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/v3d/v3d_gem.c
diff options
context:
space:
mode:
authorMaíra Canal <[email protected]>2024-04-20 18:32:09 -0300
committerMaíra Canal <[email protected]>2024-04-23 19:32:45 -0300
commit52ce97765cc71708acfd2a66b71e6cd3abb096d8 (patch)
tree28862b1d51881b20466b838fbaf5502eb6205135 /drivers/gpu/drm/v3d/v3d_gem.c
parenta6325ad47bc808aeb4c69ae36e0236c2c6d400b5 (diff)
drm/v3d: Create two functions to update all GPU stats variables
Currently, we manually perform all operations to update the GPU stats variables. Apart from the code repetition, this is very prone to errors, as we can see on commit 35f4f8c9fc97 ("drm/v3d: Don't increment `enabled_ns` twice"). Therefore, create two functions to manage updating all GPU stats variables. Now, the jobs only need to call for `v3d_job_update_stats()` when the job is done and `v3d_job_start_stats()` when starting the job. Co-developed-by: Tvrtko Ursulin <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]> Signed-off-by: Maíra Canal <[email protected]> Reviewed-by: Jose Maria Casanova Crespo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/v3d/v3d_gem.c')
0 files changed, 0 insertions, 0 deletions