Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750855AbVLTS1e (ORCPT ); Tue, 20 Dec 2005 13:27:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750861AbVLTS1e (ORCPT ); Tue, 20 Dec 2005 13:27:34 -0500 Received: from smtp.osdl.org ([65.172.181.4]:7658 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1750850AbVLTS1e (ORCPT ); Tue, 20 Dec 2005 13:27:34 -0500 Date: Tue, 20 Dec 2005 10:25:40 -0800 (PST) From: Linus Torvalds To: Nick Piggin cc: Nicolas Pitre , Ingo Molnar , David Woodhouse , Zwane Mwaikambo , lkml , Andrew Morton , Arjan van de Ven , Steven Rostedt , Alan Cox , Christoph Hellwig , Andi Kleen , David Howells , Alexander Viro , Oleg Nesterov , Paul Jackson Subject: Re: [patch 04/15] Generic Mutex Subsystem, add-atomic-call-func-x86_64.patch In-Reply-To: <43A81132.8040703@yahoo.com.au> Message-ID: References: <20051219013507.GE27658@elte.hu> <1135025932.4760.1.camel@localhost.localdomain> <20051220043109.GC32039@elte.hu> <43A7BCE1.7050401@yahoo.com.au> <43A81132.8040703@yahoo.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 691 Lines: 25 On Wed, 21 Dec 2005, Nick Piggin wrote: > Nicolas Pitre wrote: > > On Tue, 20 Dec 2005, Nick Piggin wrote: > > > > Considering that on UP, the arm should not need to disable interrupts > > > for this function (or has someone refuted Linus?), how about: > > > > > > Kernel preemption. > > > > preempt_disable() ? Yes. It should almost always be faster than physically disabling interrupts anyway. Even if it's more instructions. Linus - 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/