]> git.karo-electronics.de Git - linux-beck.git/commit
drm/rockchip: Convert psr_list_mutex to spinlock and use it
authorSean Paul <seanpaul@chromium.org>
Tue, 16 Aug 2016 23:11:28 +0000 (16:11 -0700)
committerSean Paul <seanpaul@chromium.org>
Tue, 23 Aug 2016 15:44:34 +0000 (11:44 -0400)
commit18d8d4d2287b790360ee58d2ace4896e2e10cbb6
treec6d908191d30f6e1424179b28d457f4235b2bb15
parent8f0ac5c4835291c6cf47aa60f42d0a4f15335670
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>
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
drivers/gpu/drm/rockchip/rockchip_drm_drv.h
drivers/gpu/drm/rockchip/rockchip_drm_psr.c