Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932550AbZAPATT (ORCPT ); Thu, 15 Jan 2009 19:19:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752593AbZAPAS7 (ORCPT ); Thu, 15 Jan 2009 19:18:59 -0500 Received: from rhun.apana.org.au ([64.62.148.172]:37142 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752449AbZAPAS6 (ORCPT ); Thu, 15 Jan 2009 19:18:58 -0500 Date: Fri, 16 Jan 2009 11:18:24 +1100 From: Herbert Xu To: Ingo Molnar Cc: akpm@linux-foundation.org, tj@kernel.org, hpa@zytor.com, brgerst@gmail.com, ebiederm@xmission.com, cl@linux-foundation.org, rusty@rustcorp.com.au, travis@sgi.com, linux-kernel@vger.kernel.org, steiner@sgi.com, hugh@veritas.com, "David S. Miller" , netdev@vger.kernel.org Subject: Re: [PATCH] percpu: add optimized generic percpu accessors Message-ID: <20090116001824.GA9221@gondor.apana.org.au> References: <20090115183942.GA6325@elte.hu> <20090116001200.GA9137@gondor.apana.org.au> <20090116001544.GA11073@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090116001544.GA11073@elte.hu> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 841 Lines: 22 On Fri, Jan 16, 2009 at 01:15:44AM +0100, Ingo Molnar wrote: > > > So if you could design the API such that we have a variant of add/inc > > that automatically disables/enables preemption then we can optimise that > > away on x86. > > Yeah. percpu_add(var, 1) does exactly that on x86. Awesome! Sounds like we can finally do away with those nasty hacks in the SNMP macros. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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/