drm/armada: use xchg() to atomically update dplane->old_fb
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 15 Jul 2015 17:11:24 +0000 (18:11 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 1 Oct 2015 13:32:52 +0000 (14:32 +0100)
commit66377efa3fd468283a092f17692e81c2344b03ed
tree602c3b33b5c330dc20495cba33179ce7c53563ee
parentfecfdb2db8b5fc2e6cb731a714889de5e43c2380
drm/armada: use xchg() to atomically update dplane->old_fb

Rather than using a spinlock, use xchg() to atomically update
dplane->old_fb.  This allows us to eliminate dplane->lock.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/armada/armada_overlay.c