From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750938AbVLTThT (ORCPT ); Tue, 20 Dec 2005 14:37:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751033AbVLTThT (ORCPT ); Tue, 20 Dec 2005 14:37:19 -0500 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:53769 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id S1750938AbVLTThR (ORCPT ); Tue, 20 Dec 2005 14:37:17 -0500 Date: Tue, 20 Dec 2005 19:37:00 +0000 From: Russell King To: Arjan van de Ven Cc: Nicolas Pitre , Nick Piggin , Ingo Molnar , David Woodhouse , Zwane Mwaikambo , lkml , Linus Torvalds , 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 Message-ID: <20051220193700.GD24199@flint.arm.linux.org.uk> Mail-Followup-To: Arjan van de Ven , Nicolas Pitre , Nick Piggin , Ingo Molnar , David Woodhouse , Zwane Mwaikambo , lkml , Linus Torvalds , Andrew Morton , Arjan van de Ven , Steven Rostedt , Alan Cox , Christoph Hellwig , Andi Kleen , David Howells , Alexander Viro , Oleg Nesterov , Paul Jackson References: <20051220043109.GC32039@elte.hu> <43A7BCE1.7050401@yahoo.com.au> <43A81132.8040703@yahoo.com.au> <43A81DD4.30906@yahoo.com.au> <20051220192018.GB24199@flint.arm.linux.org.uk> <1135107155.2952.30.camel@laptopd505.fenrus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1135107155.2952.30.camel@laptopd505.fenrus.org> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 20, 2005 at 08:32:35PM +0100, Arjan van de Ven wrote: > > > So, to sum up, if this path is persued, mutexes will be a bloody > > disaster on ARM. We'd be far better off sticking to semaphores > > and ignoring this mutex stuff. > > on x86 the fastpath is the same for both basically.. is there a > fundamental reason it can't be for ARM? If we're talking about implementing mutexes as a semaphore, then they will be identical. But what's the point of that? It's a semaphore which is just called a mutex. So you might as well just save the patch noise and do nothing instead. It seems to me that you'll get _exactly_ the same result with a lot less effort. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core