Skip to content

Commit b0adf60

Browse files
Christian Gmeinerpopcornmix
authored andcommitted
drm/v3d: Use v3d_perfmon_find()
Commit f2a4bcb usptream Replace the open-coded v3d_perfmon_find() with the real thing. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: Maíra Canal <mcanal@igalia.com> Signed-off-by: Maíra Canal <mcanal@igalia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240923152000.185980-1-christian.gmeiner@gmail.com
1 parent abef1d4 commit b0adf60

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/gpu/drm/v3d/v3d_perfmon.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -409,11 +409,7 @@ int v3d_perfmon_get_values_ioctl(struct drm_device *dev, void *data,
409409
if (req->pad != 0)
410410
return -EINVAL;
411411

412-
mutex_lock(&v3d_priv->perfmon.lock);
413-
perfmon = idr_find(&v3d_priv->perfmon.idr, req->id);
414-
v3d_perfmon_get(perfmon);
415-
mutex_unlock(&v3d_priv->perfmon.lock);
416-
412+
perfmon = v3d_perfmon_find(v3d_priv, req->id);
417413
if (!perfmon)
418414
return -EINVAL;
419415

0 commit comments

Comments
 (0)