| To: | Sven Eckelmann <sven@narfation.org> |
|---|---|
| Subject: | Re: [PATCH] atomic: add *_dec_not_zero |
| From: | Mike Frysinger <vapier.adi@gmail.com> |
| Date: | Sun, 8 May 2011 22:38:43 -0400 |
| Cc: | Russell King - ARM Linux <linux@arm.linux.org.uk>, linux-kernel@vger.kernel.org, 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 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=mOuq4v7R023AdXjNGMJ4biLjdHg3N+1rr0eqQVDw27c=; b=LhH/RU1r++uhruCrWPjpkFruq6qfOTQ62YDVEVNHUZijEwKgyBZjQHFj8pz7/JSykX RdrsEKS2AiM+gH6+9O/CdczqT4eJDetQuB0zWwB60FreGB0mpukuQtpZ+1r0jpAN90Yj pm/AzprmZxShOMdRafk07SJ6a1KC1lK5M0wbc= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Ruui1TAcLSmfUpNcK2vttOebS/h7hGv3zMRS9MIEXZrzNVVZcTODO2AxyYHzhR+kJO UeXqBkPV9xaNvwRLwyiBb+C62TRIjUzdPoZ7F3QStK1XnMCe82hf/lERwZgSKfhQ4lmd U4WEw7BYE9LAu6ThJRyhIsGg0F1e33bXZorBQ= |
| In-reply-to: | <201105081133.50824.sven@narfation.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1304458235-28473-1-git-send-email-sven@narfation.org> <20110508092403.GB27807@n2100.arm.linux.org.uk> <201105081133.50824.sven@narfation.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Sun, May 8, 2011 at 05:33, Sven Eckelmann wrote: > Russell King - ARM Linux wrote: > [...] >> Do we need atomic_dec_not_zero() et.al. in every arch header - is there no >> generic header which it could be added to? > > Mike Frysinger already tried to answer it in > <BANLkTimctgbto3dsnJ3d3r7NggS0KF9_Sw@mail.gmail.com>: >> that's what asm-generic is for. if the arch isnt using it, it's >> either because the arch needs to convert to it, or they're using SMP >> and asm-generic doesnt yet support that for atomic.h. >> >> for example, the Blackfin port only needed updating for the SMP case. >> in the non-SMP case, we're getting the def from asm-generic/atomic.h. > > Feel free to change that but I just followed the style used by all other > macros and will not redesign the complete atomic*.h idea. what you're doing is currently correct. i think merging SMP support into asm-generic for atomic* will take a bit of pondering first. -mike |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] atomic: add *_dec_not_zero, Benjamin Herrenschmidt |
|---|---|
| Next by Date: | Re: RFC: A new MIPS64 ABI, Ralf Baechle |
| Previous by Thread: | Re: [PATCH] atomic: add *_dec_not_zero, Sven Eckelmann |
| Next by Thread: | Re: [PATCH] atomic: add *_dec_not_zero, Benjamin Herrenschmidt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |