]> git.karo-electronics.de Git - mv-sheeva.git/commit
arch/tile: use atomic exchange in arch_write_unlock()
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 30 Mar 2012 19:46:29 +0000 (15:46 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 2 Apr 2012 16:13:49 +0000 (12:13 -0400)
commitab306cae660e524edbeb8889e4e23d3c97717b9c
treec588cb46c9497e9271e8bc5b5b4f5e53244c6cf9
parentb14f21906774be181627412fed5b6b5fae2b53a2
arch/tile: use atomic exchange in arch_write_unlock()

This idiom is used elsewhere when we do an unlock by writing a zero,
but I missed it here.  Using an atomic operation avoids waiting
on the write buffer for the unlocking write to be sent to the home cache.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/spinlock_64.h