atomic: Allow atomic_inc_not_zero to be overridden
authorAnton Blanchard <anton@samba.org>
Wed, 29 Feb 2012 21:09:53 +0000 (21:09 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Mar 2012 06:06:08 +0000 (17:06 +1100)
commitb1ada6010e234d6c53bfcd5a617610c9284846b8
tree158a68c8c224e3333f4e786764656e6d18c6d965
parent6c15d7afbb2f9e2d3114b513306dae736b56f535
atomic: Allow atomic_inc_not_zero to be overridden

We want to implement a ppc64 specific version of atomic_inc_not_zero
so wrap it in an ifdef to allow it to be overridden.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
include/linux/atomic.h