linux-mips
[Top] [All Lists]

RE: [PATCH] atomic: add *_dec_not_zero

To: "Sven Eckelmann" <sven@narfation.org>, <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] atomic: add *_dec_not_zero
From: "David Laight" <David.Laight@ACULAB.COM>
Date: Wed, 4 May 2011 09:05:53 +0100
Cc: <linux-arch@vger.kernel.org>, <linux-mips@linux-mips.org>, <linux-m32r@ml.linux-m32r.org>, <linux-ia64@vger.kernel.org>, <linux-parisc@vger.kernel.org>, <linux-cris-kernel@axis.com>, <linux-s390@vger.kernel.org>, <linux-sh@vger.kernel.org>, <x86@kernel.org>, "Chris Metcalf" <cmetcalf@tilera.com>, "David Howells" <dhowells@redhat.com>, <linux-m68k@lists.linux-m68k.org>, <linux-am33-list@redhat.com>, <linux-alpha@vger.kernel.org>, <sparclinux@vger.kernel.org>, <uclinux-dist-devel@blackfin.uclinux.org>, <linuxppc-dev@lists.ozlabs.org>, <linux-arm-kernel@lists.infradead.org>
In-reply-to: <1304458235-28473-1-git-send-email-sven@narfation.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Thread-index: AcwJ3EAltH6AZTKdQ3qO9QnukRcgpAAVa6Mw
Thread-topic: [PATCH] atomic: add *_dec_not_zero
 
> 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.

Isn't there a place where a default definition of this can be
defined? Instead of adding it separately to every architecture.

        David



<Prev in Thread] Current Thread [Next in Thread>