drm/armada: drop struct_mutex from cursor paths
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Nov 2015 09:32:45 +0000 (10:32 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 5 Dec 2015 21:44:07 +0000 (21:44 +0000)
commit4bd3fd443aa4bc3cede05de201e9cf3277059477
tree3895a5026da59cf6d5d49b9953f9ea1b86322f10
parent39146d6f866888beefaecba3115576c10e1033aa
drm/armada: drop struct_mutex from cursor paths

The kms state itself is already protected by the modeset locks
acquired by the drm core. The only thing left is gem bo state, and
since the cursor code expects small objects which are statically
mapped at create time and then invariant over the lifetime of the gem
bo there's nothing to protect.

See armada_gem_dumb_create -> armada_gem_linear_back which assigns
obj->addr which is the only thing used by the cursor code.

Only tricky bit is to switch to the _unlocked unreference function.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/armada/armada_crtc.c
This page took 0.030708 seconds and 5 git commands to generate.