From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: David Howells In-Reply-To: <439E122E.3080902@yahoo.com.au> References: <439E122E.3080902@yahoo.com.au> Subject: Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation Date: Tue, 13 Dec 2005 09:54:49 +0000 Message-ID: <22479.1134467689@warthog.cambridge.redhat.com> Sender: dhowells@redhat.com To: Nick Piggin Cc: David Howells , torvalds@osdl.org, akpm@osdl.org, hch@infradead.org, arjan@infradead.org, matthew@wil.cx, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org List-ID: Nick Piggin wrote: > We have atomic_cmpxchg. Can you use that for a sufficient generic > implementation? No. CMPXCHG/CAS is not as available as XCHG, and it's also unnecessary. David