Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965117AbVLVHpF (ORCPT ); Thu, 22 Dec 2005 02:45:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965118AbVLVHpF (ORCPT ); Thu, 22 Dec 2005 02:45:05 -0500 Received: from smtp102.plus.mail.mud.yahoo.com ([68.142.206.235]:55391 "HELO smtp102.plus.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S965117AbVLVHpD (ORCPT ); Thu, 22 Dec 2005 02:45:03 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=w/pexBkQ/xDuEv9UhZVYuBQB/+OL1SkxprdLSHjL5St0sdQs0aRCZElC4jUprCD/CA0Ii+HX+rWAovKU2GfhVAMcjLlsIMHM3ThMpRwNXjbBBVjvGii77k1uQVM9CDnPN2R0xGXFguChdTWFHoLudwyQssT1edbtNNiNNuGAvi4= ; Message-ID: <43AA5978.1060705@yahoo.com.au> Date: Thu, 22 Dec 2005 18:44:56 +1100 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1 X-Accept-Language: en MIME-Version: 1.0 To: Nicolas Pitre CC: Ingo Molnar , Linus Torvalds , lkml , Andrew Morton , Arjan van de Ven , Jes Sorensen , Zwane Mwaikambo , Oleg Nesterov , David Howells , Alan Cox , Benjamin LaHaise , Steven Rostedt , Christoph Hellwig , Andi Kleen , Russell King Subject: Re: [patch 2/5] mutex subsystem: add architecture specific mutex primitives References: <20051221155411.GA7243@elte.hu> <20051221231218.GA6747@elte.hu> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 801 Lines: 21 Can you now simply remove the meddling with the atomic.h headers? i386 can directly implement arch_mutex_fast_lock instead of atomic_dec_call_if_negative. Not sure what the policy is with naming, but I prefer mutex_arch_xxx or __mutex_xxx for the arch specific names. I think ARMv6 has a decent atomic_cmpxchg implementation but does not define __HAVE_ARCH_CMPXCHG. It might be useful to try to use this for ARMv6 SMP for a slightly better trylock. -- SUSE Labs, Novell Inc. Send instant messages to your online friends http://au.messenger.yahoo.com - 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/