]> Git Repo - linux.git/commitdiff
drm/v3d: Use v3d_perfmon_find()
authorChristian Gmeiner <[email protected]>
Mon, 23 Sep 2024 15:19:59 +0000 (17:19 +0200)
committerMaíra Canal <[email protected]>
Tue, 24 Sep 2024 23:18:44 +0000 (20:18 -0300)
Replace the open-coded v3d_perfmon_find() with the real thing.

Signed-off-by: Christian Gmeiner <[email protected]>
Reviewed-by: Maíra Canal <[email protected]>
Signed-off-by: Maíra Canal <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/v3d/v3d_perfmon.c

index cd7f1eedf17fe0cddd83a7f96cf15f29588f9bce..54a486a9b74c712b1dba63f55ae9a2f8986e17ff 100644 (file)
@@ -402,11 +402,7 @@ int v3d_perfmon_get_values_ioctl(struct drm_device *dev, void *data,
        if (req->pad != 0)
                return -EINVAL;
 
-       mutex_lock(&v3d_priv->perfmon.lock);
-       perfmon = idr_find(&v3d_priv->perfmon.idr, req->id);
-       v3d_perfmon_get(perfmon);
-       mutex_unlock(&v3d_priv->perfmon.lock);
-
+       perfmon = v3d_perfmon_find(v3d_priv, req->id);
        if (!perfmon)
                return -EINVAL;
 
This page took 0.049411 seconds and 4 git commands to generate.