diff options
-rw-r--r-- | arch/powerpc/include/asm/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/atomic.h b/arch/powerpc/include/asm/atomic.h index 2b90335194a7..a2cc8010cd72 100644 --- a/arch/powerpc/include/asm/atomic.h +++ b/arch/powerpc/include/asm/atomic.h | |||
@@ -560,7 +560,7 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) | |||
560 | * Atomically increments @v by 1, so long as @v is non-zero. | 560 | * Atomically increments @v by 1, so long as @v is non-zero. |
561 | * Returns non-zero if @v was non-zero, and zero otherwise. | 561 | * Returns non-zero if @v was non-zero, and zero otherwise. |
562 | */ | 562 | */ |
563 | static __inline__ long atomic64_inc_not_zero(atomic64_t *v) | 563 | static __inline__ int atomic64_inc_not_zero(atomic64_t *v) |
564 | { | 564 | { |
565 | long t1, t2; | 565 | long t1, t2; |
566 | 566 | ||
@@ -579,7 +579,7 @@ static __inline__ long atomic64_inc_not_zero(atomic64_t *v) | |||
579 | : "r" (&v->counter) | 579 | : "r" (&v->counter) |
580 | : "cc", "xer", "memory"); | 580 | : "cc", "xer", "memory"); |
581 | 581 | ||
582 | return t1; | 582 | return t1 != 0; |
583 | } | 583 | } |
584 | 584 | ||
585 | #endif /* __powerpc64__ */ | 585 | #endif /* __powerpc64__ */ |