summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/rockchip/rockchip_drm_drv.h
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2016-08-17 02:11:28 +0300
committerSean Paul <seanpaul@chromium.org>2016-08-23 18:44:34 +0300
commit18d8d4d2287b790360ee58d2ace4896e2e10cbb6 (patch)
treec6d908191d30f6e1424179b28d457f4235b2bb15 /drivers/gpu/drm/rockchip/rockchip_drm_drv.h
parent8f0ac5c4835291c6cf47aa60f42d0a4f15335670 (diff)
downloadlinux-18d8d4d2287b790360ee58d2ace4896e2e10cbb6.tar.xz
drm/rockchip: Convert psr_list_mutex to spinlock and use it
This patch converts the psr_list_mutex to a spinlock and locks all access to psr_list to avoid races (however unlikely they were). Reviewed-by: Yakir Yang <ykk@rock-chips.com> Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_drv.h')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.h b/drivers/gpu/drm/rockchip/rockchip_drm_drv.h
index 9c34c9e181d0..5c698456aa1c 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.h
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.h
@@ -63,7 +63,7 @@ struct rockchip_drm_private {
struct drm_atomic_state *state;
struct list_head psr_list;
- struct mutex psr_list_mutex;
+ spinlock_t psr_list_lock;
};
int rockchip_register_crtc_funcs(struct drm_crtc *crtc,