diff options
author | Sean Paul <seanpaul@chromium.org> | 2016-08-16 16:11:28 -0700 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-08-23 11:44:34 -0400 |
commit | 18d8d4d2287b790360ee58d2ace4896e2e10cbb6 (patch) | |
tree | c6d908191d30f6e1424179b28d457f4235b2bb15 /drivers/gpu/drm/rockchip/rockchip_drm_drv.c | |
parent | 8f0ac5c4835291c6cf47aa60f42d0a4f15335670 (diff) | |
download | op-kernel-dev-18d8d4d2287b790360ee58d2ace4896e2e10cbb6.zip op-kernel-dev-18d8d4d2287b790360ee58d2ace4896e2e10cbb6.tar.gz |
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.c')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index b43fe5d..76eaf1d 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c @@ -157,7 +157,7 @@ static int rockchip_drm_bind(struct device *dev) drm_dev->dev_private = private; INIT_LIST_HEAD(&private->psr_list); - mutex_init(&private->psr_list_mutex); + spin_lock_init(&private->psr_list_lock); drm_mode_config_init(drm_dev); |