| To: | Benjamin Herrenschmidt <benh@kernel.crashing.org> |
|---|---|
| Subject: | Re: Re: Re: [PATCHv5] atomic: add *_dec_not_zero |
| From: | Sven Eckelmann <sven@narfation.org> |
| Date: | Mon, 05 Dec 2011 08:57:27 +0100 |
| Cc: | Russell King - ARM Linux <linux@arm.linux.org.uk>, linux-m32r-ja@ml.linux-m32r.org, linux-mips@linux-mips.org, linux-ia64@vger.kernel.org, linux-doc@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Heiko Carstens <heiko.carstens@de.ibm.com>, Randy Dunlap <rdunlap@xenotime.net>, Paul Mackerras <paulus@samba.org>, Helge Deller <deller@gmx.de>, sparclinux@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, Richard Weinberger <richard@nod.at>, Hirokazu Takata <takata@linux-m32r.org>, x86@kernel.org, "James E.J. Bottomley" <jejb@parisc-linux.org>, Ingo Molnar <mingo@redhat.com>, Matt Turner <mattst88@gmail.com>, Fenghua Yu <fenghua.yu@intel.com>, Arnd Bergma nn <arnd@arndb.de>, Jeff Dike <jdike@addtoit.com>, Chris Metcalf <cmetcalf@tilera.com>, linux-m32r@ml.linux-m32r.org, Ivan Kokshaysky <ink@jurassic.park.msu.ru>, Thomas Gleixner <tglx@linutronix.de>, linux-arm-kernel@lists.in fradead.org, Richard Henderson <rth@twiddle.net>, Tony Luck <tony.luck@intel.com>, linux-parisc@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org, linux-kernel@vger.kernel.org, Ralf Baechle <ralf@linux-mips.org>, Kyle McMartin <kyle@mcmartin.ca>, linux-alpha@vger.kernel.org, Martin Schwidefsky <schwidefsky@de.ibm.com>, linux390@de.ibm.com, Andrew Morton <akpm@linux-foundation.org>, linuxppc-dev@lists.ozlabs.org, "David S. Miller" <davem@davemloft.net> |
| Dkim-signature: | v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=mail; t=1323071957; bh=WePDqzBwJCP0hF2CSPHbcjn+dXDe7R1+UWj3jvcP9G8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; b=YLhX+3v2w/adgdJYo1WmVJXz+V/tTXwaYeuoK1R0np6NA/cIqn0rcMrC6N2J0TwiJ xaLo7SM19N/C9LE8VBq9pO+FWZhy621FtR4czTVA0FSt772SkwhixuzNJzTqkPR4RS 2sZhWGw2Dqq442a5TkoI9jRYd53Qjqf+HGJe/Y7o= |
| In-reply-to: | <1323038515.11728.26.camel@pasglop> |
| References: | <1323013369-29691-1-git-send-email-sven@narfation.org> <20111204221850.GC14542@n2100.arm.linux.org.uk> <1323038515.11728.26.camel@pasglop> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | KMail/4.6.0 (Linux/3.1.0-1-686-pae; KDE/4.6.5; i686; ; ) |
On Monday 05 December 2011 09:41:55 Benjamin Herrenschmidt wrote:
> On Sun, 2011-12-04 at 22:18 +0000, Russell King - ARM Linux wrote:
>
> .../...
>
> > And really, I believe it would be a good cleanup if all the standard
> > definitions for atomic64 ops (like atomic64_add_negative) were also
> > defined in include/linux/atomic.h rather than individually in every
> > atomic*.h header throughout the kernel source, except where an arch
> > wants to explicitly override it. Yet again, virtually all architectures
> > define these in exactly the same way.
> >
> > We have more than enough code in arch/ for any architecture to worry
> > about, we don't need schemes to add more when there's simple and
> > practical solutions to avoiding doing so if the right design were
> > chosen (preferably from the outset.)
> >
> > So, I'm not going to offer my ack for a change which I don't believe
> > is the correct approach.
>
> I agree with Russell, his approach is a lot easier to maintain long run,
> we should even consider converting existing definitions.
I would rather go with "the existing definitions have to converted" and this
means "not by this patch". At the moment, the atomic64 stuff exist only as
separate generic or arch specific implementation. It is fine that Russell King
noticed that people like Arun Sharma did a lot of work to made it true for
atomic_t, but atomic64_t is a little bit different right now (at least as I
understand it).
Kind regards,
Sven
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCHv5] atomic: add *_dec_not_zero, H. Peter Anvin |
|---|---|
| Next by Date: | Re: Re: Re: [PATCHv5] atomic: add *_dec_not_zero, Benjamin Herrenschmidt |
| Previous by Thread: | Re: [PATCHv5] atomic: add *_dec_not_zero, H. Peter Anvin |
| Next by Thread: | Re: Re: Re: [PATCHv5] atomic: add *_dec_not_zero, Benjamin Herrenschmidt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |