[PATCH 08/20] drm/armada: use xchg() to atomically update dplane->old_fb

2015-10-01 Thread Russell King - ARM Linux
On Wed, Sep 30, 2015 at 11:49:44AM +0100, Emil Velikov wrote: > Hi Russell, > > On 29 September 2015 at 19:10, Russell King > wrote: > > Rather than using a spinlock, use xchg() to atomically update > > dplane->old_fb. This allows us to eliminate dplane->lock. > > > > Signed-off-by: Russell Kin

[PATCH 08/20] drm/armada: use xchg() to atomically update dplane->old_fb

2015-09-30 Thread Emil Velikov
Hi Russell, On 29 September 2015 at 19:10, Russell King wrote: > 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 > --- [...] > @@ -76,13 +75,10 @@ static void armada_ovl_retire_fb(struct a

[PATCH 08/20] drm/armada: use xchg() to atomically update dplane->old_fb

2015-09-29 Thread Russell King
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 --- drivers/gpu/drm/armada/armada_overlay.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/arm