Commit 86cda021 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] s390 atomic_inc_and_test() fix

From: David Mosberger <davidm@napali.hpl.hp.com>
parent 6d06b342
......@@ -72,7 +72,7 @@ static __inline__ int atomic_inc_return(volatile atomic_t * v)
static __inline__ int atomic_inc_and_test(volatile atomic_t * v)
{
return __CS_LOOP(v, 1, "ar") != 0;
return __CS_LOOP(v, 1, "ar") == 0;
}
static __inline__ void atomic_dec(volatile atomic_t * v)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment