From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750953AbVLTT72 (ORCPT ); Tue, 20 Dec 2005 14:59:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750869AbVLTT72 (ORCPT ); Tue, 20 Dec 2005 14:59:28 -0500 Received: from relais.videotron.ca ([24.201.245.36]:5058 "EHLO relais.videotron.ca") by vger.kernel.org with ESMTP id S1750836AbVLTT71 (ORCPT ); Tue, 20 Dec 2005 14:59:27 -0500 Date: Tue, 20 Dec 2005 14:59:26 -0500 (EST) From: Nicolas Pitre Subject: Re: [patch 04/15] Generic Mutex Subsystem, add-atomic-call-func-x86_64.patch In-reply-to: <1135107155.2952.30.camel@laptopd505.fenrus.org> X-X-Sender: nico@localhost.localdomain To: Arjan van de Ven Cc: Russell King , 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 Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT References: <1135025932.4760.1.camel@localhost.localdomain> <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> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Dec 2005, Arjan van de Ven wrote: > on x86 the fastpath is the same for both basically.. is there a > fundamental reason it can't be for ARM? ARM prior ARM architecture level 6 (which means about 99% of all ARM processors in the field currently) cannot do an atomic decrement/increment. It must be done manually with interrupt disabled. The only truly atomic instruction it has is a swap which lays itself pretty well for mutex support. Nicolas