Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755085AbZAaQBH (ORCPT ); Sat, 31 Jan 2009 11:01:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752511AbZAaQAy (ORCPT ); Sat, 31 Jan 2009 11:00:54 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:52775 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752437AbZAaQAx (ORCPT ); Sat, 31 Jan 2009 11:00:53 -0500 Date: Sat, 31 Jan 2009 17:00:24 +0100 From: Ingo Molnar To: Jeremy Fitzhardinge Cc: "H. Peter Anvin" , Tejun Heo , Brian Gerst , ebiederm@xmission.com, cl@linux-foundation.org, rusty@rustcorp.com.au, travis@sgi.com, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, steiner@sgi.com, hugh@veritas.com Subject: Re: [patch] add optimized generic percpu accessors Message-ID: <20090131160024.GA21535@elte.hu> References: <1231843097-18003-1-git-send-email-tj@kernel.org> <496C717F.70204@kernel.org> <73c1f2160901130527s2d61f4ewf0725c3bf1b36a1a@mail.gmail.com> <496C9FB7.9050907@kernel.org> <496D8CEB.5060402@zytor.com> <20090114093834.GA19799@elte.hu> <49842841.1090902@goop.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49842841.1090902@goop.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 769 Lines: 20 * Jeremy Fitzhardinge wrote: > So, upshot, I think the default versions should be wrapped in > preempt_disable/enable to preserve this interface invariant. The default ones already are: #define __percpu_generic_to_op(var, val, op) \ do { \ get_cpu_var(var) op val; \ put_cpu_var(var); \ } while (0) Ingo -- 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/