From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: [PATCH] atomic: add atomic_inc_not_zero_hint() Date: Mon, 15 Nov 2010 08:16:57 -0600 (CST) Message-ID: References: <20101105102038.53e36f9e.akpm@linux-foundation.org> <1288980046.2882.1054.camel@edumazet-laptop> <20101105110828.52f061b3.akpm@linux-foundation.org> <1288981224.2882.1105.camel@edumazet-laptop> <20101105112821.57f80481.akpm@linux-foundation.org> <1288984844.2665.52.camel@edumazet-laptop> <20101105195101.GC15561@linux.vnet.ibm.com> <20101113222612.GD2825@linux.vnet.ibm.com> <20101115140739.GJ7269@basil.fritz.box> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: "Paul E. McKenney" , Eric Dumazet , Andrew Morton , linux-kernel , David Miller , netdev , Arnaldo Carvalho de Melo , Ingo Molnar , Nick Piggin To: Andi Kleen Return-path: In-Reply-To: <20101115140739.GJ7269@basil.fritz.box> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 15 Nov 2010, Andi Kleen wrote: > > It is another way to get an exclusive cache line > > for situations like this. No need to give a hint. > > prefetchw doesn't work on Intel (or rather is equivalent to prefetch), > for Intel you always need to explicitely write to get an exclusive > line. Argh. You mean x86. Itanium could do it and is also by Intel. Could you please change that for x86 as well? Otherwise we will get more of these weird code twisters.