Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 23 Feb 2002 18:46:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 23 Feb 2002 18:46:02 -0500 Received: from zero.tech9.net ([209.61.188.187]:64011 "EHLO zero.tech9.net") by vger.kernel.org with ESMTP id ; Sat, 23 Feb 2002 18:45:49 -0500 Subject: Re: [PATCH] only irq-safe atomic ops From: Robert Love To: Andrew Morton Cc: Roman Zippel , linux-kernel@vger.kernel.org In-Reply-To: <1014505987.1003.1104.camel@phantasy> In-Reply-To: <3C773C02.93C7753E@zip.com.au>, <1014444810.1003.53.camel@phantasy> <3C773C02.93C7753E@zip.com.au> <1014449389.1003.149.camel@phantasy> <3C774AC8.5E0848A2@zip.com.au> <20020223043815.B29874@hq.fsmlabs.com> <1014488408.846.806.camel@phantasy> <20020223120648.A1295@hq.fsmlabs.com> <3C781037.EA4ADEF5@linux-m68k.org> <3C781351.DCB40AD3@zip.com.au> <1014505987.1003.1104.camel@phantasy> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 23 Feb 2002 18:45:50 -0500 Message-Id: <1014507951.850.1140.camel@phantasy> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2002-02-23 at 18:13, Robert Love wrote: > On Sat, 2002-02-23 at 17:10, Andrew Morton wrote: > > > ooh. me likee. > > > > #define smp_get_cpuid() ({ preempt_disable(); smp_processor_id(); }) > > #define smp_put_cpuid() preempt_enable() > > > > Does rml likee? > > Yah, that works. OK, I still likee, but I was just thinking, if we are going to add have to add something why not consider the irq-safe atomic ops? It is certainly the most optimal. Robert Love - 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/