Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750867AbVLTS3D (ORCPT ); Tue, 20 Dec 2005 13:29:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750871AbVLTS3B (ORCPT ); Tue, 20 Dec 2005 13:29:01 -0500 Received: from smtp.osdl.org ([65.172.181.4]:5099 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1750867AbVLTS3A (ORCPT ); Tue, 20 Dec 2005 13:29:00 -0500 Date: Tue, 20 Dec 2005 10:27:12 -0800 (PST) From: Linus Torvalds To: Nicolas Pitre cc: Nick Piggin , 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: 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: 620 Lines: 19 On Tue, 20 Dec 2005, Nicolas Pitre wrote: > > Sure, and we're now more costly than the current implementation with irq > disabling. Do the timing. It may be more instructions, but I think it was you yourself that timed the current thing at 23 cycles, no? Special registers are almost always slower than nicely cached accesses (and they all basically will be). 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/