drm/armada: use a private mutex to protect priv->linear
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Nov 2015 09:00:36 +0000 (10:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 5 Dec 2015 21:44:07 +0000 (21:44 +0000)
commit0b8ebeacf5ef43a467c7ec5400ccc1ffc3fbdfba
treeae367b9b8dfa91535a38ec8a62d20184b804d58d
parent4bd3fd443aa4bc3cede05de201e9cf3277059477
drm/armada: use a private mutex to protect priv->linear

Reusing the Big DRM Lock just leaks, and the few things left that
dev->struct_mutex protected are very well contained - it's just the
linear drm_mm manager.

With this armada is completely struct_mutex free!

v2: Convert things properly and also take the lock in
armada_gem_free_object, and remove the stale comment (Russell).

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_debugfs.c
drivers/gpu/drm/armada/armada_drm.h
drivers/gpu/drm/armada/armada_drv.c
drivers/gpu/drm/armada/armada_gem.c