Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965427AbZLQTaB (ORCPT ); Thu, 17 Dec 2009 14:30:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965422AbZLQT35 (ORCPT ); Thu, 17 Dec 2009 14:29:57 -0500 Received: from nlpi129.sbcis.sbc.com ([207.115.36.143]:36401 "EHLO nlpi129.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965424AbZLQT34 (ORCPT ); Thu, 17 Dec 2009 14:29:56 -0500 Date: Thu, 17 Dec 2009 13:28:34 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Mathieu Desnoyers cc: Tejun Heo , linux-kernel@vger.kernel.org, Mel Gorman , Pekka Enberg , Steven Rostedt Subject: Re: [this_cpu_xx V7 0/8] Per cpu atomics in core allocators and cleanup In-Reply-To: <20091217133958.GA21618@Krystal> Message-ID: References: <20091214220320.665065925@quilx.com> <20091215174302.GA3928@Krystal> <4B2830CC.7040309@kernel.org> <20091216014031.GA12282@Krystal> <4B283BFE.2040005@kernel.org> <20091217133958.GA21618@Krystal> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 669 Lines: 22 > However, I would need: > > this_cpu_cmpxchg(scalar, oldv, newv) > (maps to x86 cmpxchg) > > this_cpu_add_return(scalar, value) > (maps to x86 xadd) > > too. Is that a planned addition ? It was not necessary. Its easy to add though. > (while we are at it, we might as will add the xchg instruction, > althrough it has an implied LOCK prefix on x86). Well yeah thats a thorny one. One could use the cmpxchg instead? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/