From: Sven Eckelmann <sven@xxxxxxxxxxxxx> Subject: [PATCHv3] atomic: add *_dec_not_zero Date: Sun, 29 May 2011 09:13:20 +0200 > Introduce an *_dec_not_zero operation. Make this a special case of > *_add_unless because batman-adv uses atomic_dec_not_zero in different > places like re-broadcast queue or aggregation queue management. There > are other non-final patches which may also want to use this macro. > > Reported-by: David S. Miller <davem@xxxxxxxxxxxxx> > Signed-off-by: Sven Eckelmann <sven@xxxxxxxxxxxxx> > Acked-by: Mike Frysinger <vapier@xxxxxxxxxx> > Acked-by: James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> > Acked-by: David S. Miller <davem@xxxxxxxxxxxxx> > Acked-by: Ingo Molnar <mingo@xxxxxxx> > Acked-by: Jesper Nilsson <jesper.nilsson@xxxxxxxx> > Acked-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx> > Acked-by: David Howells <dhowells@xxxxxxxxxx> > Acked-by: Chris Metcalf <cmetcalf@xxxxxxxxxx> > Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> > Acked-by: Will Deacon <will.deacon@xxxxxxx> > Acked-by: Matt Turner <mattst88@xxxxxxxxx> > Acked-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> > Acked-by: Paul Mundt <lethal@xxxxxxxxxxxx> > Acked-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx> > Cc: Tony Luck <tony.luck@xxxxxxxxx> > Cc: Fenghua Yu <fenghua.yu@xxxxxxxxx> > Cc: linux-ia64@xxxxxxxxxxxxxxx > Cc: Hirokazu Takata <takata@xxxxxxxxxxxxxx> > Cc: linux-m32r@xxxxxxxxxxxxxxxxx > Cc: Arnd Bergmann <arnd@xxxxxxxx> > Cc: linux-arch@xxxxxxxxxxxxxxx > --- > Sry, had to rebase the patch because some lines bellow my patch in > arch/tile/include/asm/atomic.h changed. > > I am still waiting for (n)acks for ia64, m32r and generic... and someone > who is willing to apply it in his tree (maybe Arnd Bermann?). > > arch/alpha/include/asm/atomic.h | 2 ++ > arch/alpha/include/asm/local.h | 1 + > arch/arm/include/asm/atomic.h | 2 ++ > arch/avr32/include/asm/atomic.h | 1 + > arch/blackfin/include/asm/atomic.h | 1 + > arch/cris/include/asm/atomic.h | 1 + > arch/frv/include/asm/atomic.h | 1 + > arch/h8300/include/asm/atomic.h | 1 + > arch/ia64/include/asm/atomic.h | 2 ++ > arch/m32r/include/asm/atomic.h | 1 + > arch/m32r/include/asm/local.h | 1 + > arch/m68k/include/asm/atomic.h | 1 + > arch/mips/include/asm/atomic.h | 2 ++ > arch/mips/include/asm/local.h | 1 + > arch/mn10300/include/asm/atomic.h | 1 + > arch/parisc/include/asm/atomic.h | 2 ++ > arch/powerpc/include/asm/atomic.h | 2 ++ > arch/powerpc/include/asm/local.h | 1 + > arch/s390/include/asm/atomic.h | 2 ++ > arch/sh/include/asm/atomic.h | 1 + > arch/sparc/include/asm/atomic_32.h | 1 + > arch/sparc/include/asm/atomic_64.h | 2 ++ > arch/tile/include/asm/atomic.h | 9 +++++++++ > arch/tile/include/asm/atomic_32.h | 1 + > arch/x86/include/asm/atomic.h | 1 + > arch/x86/include/asm/atomic64_64.h | 1 + > arch/xtensa/include/asm/atomic.h | 1 + > include/asm-generic/atomic-long.h | 2 ++ > include/asm-generic/atomic.h | 1 + > include/asm-generic/atomic64.h | 1 + > include/asm-generic/local.h | 1 + > include/asm-generic/local64.h | 2 ++ > 32 files changed, 50 insertions(+), 0 deletions(-) Acked-by: Hirokazu Takata <takata@xxxxxxxxxxxxxx> Thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html