Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932383AbVLUL7u (ORCPT ); Wed, 21 Dec 2005 06:59:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932382AbVLUL7u (ORCPT ); Wed, 21 Dec 2005 06:59:50 -0500 Received: from inti.inf.utfsm.cl ([200.1.21.155]:49592 "EHLO inti.inf.utfsm.cl") by vger.kernel.org with ESMTP id S932383AbVLUL7i (ORCPT ); Wed, 21 Dec 2005 06:59:38 -0500 Message-Id: <200512202035.jBKKZSHS003621@laptop11.inf.utfsm.cl> To: Steven Rostedt cc: Russell King , Nicolas Pitre , Nick Piggin , Ingo Molnar , David Woodhouse , Zwane Mwaikambo , lkml , Linus Torvalds , Andrew Morton , Arjan van de Ven , 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 from Steven Rostedt of "Tue, 20 Dec 2005 14:43:30 CDT." X-Mailer: MH-E 7.4.2; nmh 1.1; XEmacs 21.4 (patch 18) Date: Tue, 20 Dec 2005 17:35:28 -0300 From: Horst von Brand X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0b5 (inti.inf.utfsm.cl [200.1.19.1]); Wed, 21 Dec 2005 08:56:26 -0300 (CLST) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1148 Lines: 39 Steven Rostedt wrote: [...] > Let me restate, that the generic code should not be this, but each arch > can have this if they already went through great lengths in making a fast > semaphore. > > Heck put the above defines in the generic code, with a define > > linux/mutex.h: > > #ifdef HAVE_ARCH_MUTEX > #include > #else > > #ifdef HAVE_FAST_SEMAPHORE > > #define > > #else > > generic code here Anything to go here could/should very well be in the above arch-specific file. Saves you a #define ;-) > #endif /* HAVE_FAST_SEMAPHORE */ > #endif /* HAVE_ARCH_MUTEX */ -- Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513 - 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/