IA64: Slim down __clear_bit_unlock
authorChristoph Lameter <clameter@sgi.com>
Wed, 19 Dec 2007 00:22:46 +0000 (16:22 -0800)
committerTony Luck <tony.luck@intel.com>
Wed, 19 Dec 2007 00:22:46 +0000 (16:22 -0800)
__clear_bit_unlock does not need to perform atomic operations on the
variable.  Avoid a cmpxchg and simply do a store with release semantics.
Add a barrier to be safe that the compiler does not do funky things.

Tony: Use intrinsic rather than inline assembler

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Acked-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>

No differences found