These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 580d2969481e1410acfce4d2610a4d44f9d3f772 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ma=C3=ADra=20Canal?= <mcanal@igalia.com>
|
|
Date: Fri, 4 Oct 2024 09:35:59 -0300
|
|
Subject: [PATCH] drm/vc4: Use `vc4_perfmon_find()`
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Similar to commit f2a4bcb25328 ("drm/v3d: Use v3d_perfmon_find()"),
|
|
replace the open-coded `vc4_perfmon_find()` with the real thing.
|
|
|
|
Cc: Christian Gmeiner <cgmeiner@igalia.com>
|
|
Signed-off-by: Maíra Canal <mcanal@igalia.com>
|
|
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
|
|
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
|
|
Link: https://patchwork.freedesktop.org/patch/msgid/20241004123817.890016-1-mcanal@igalia.com
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_perfmon.c | 6 +-----
|
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_perfmon.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_perfmon.c
|
|
@@ -241,11 +241,7 @@ int vc4_perfmon_get_values_ioctl(struct
|
|
return -ENODEV;
|
|
}
|
|
|
|
- mutex_lock(&vc4file->perfmon.lock);
|
|
- perfmon = idr_find(&vc4file->perfmon.idr, req->id);
|
|
- vc4_perfmon_get(perfmon);
|
|
- mutex_unlock(&vc4file->perfmon.lock);
|
|
-
|
|
+ perfmon = vc4_perfmon_find(vc4file, req->id);
|
|
if (!perfmon)
|
|
return -EINVAL;
|
|
|