Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751187AbVLMJzL (ORCPT ); Tue, 13 Dec 2005 04:55:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750848AbVLMJzL (ORCPT ); Tue, 13 Dec 2005 04:55:11 -0500 Received: from mx1.redhat.com ([66.187.233.31]:7325 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1750811AbVLMJzK (ORCPT ); Tue, 13 Dec 2005 04:55:10 -0500 From: David Howells In-Reply-To: <439E122E.3080902@yahoo.com.au> References: <439E122E.3080902@yahoo.com.au> 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 Subject: Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation X-Mailer: MH-E 7.84; nmh 1.1; GNU Emacs 22.0.50.1 Date: Tue, 13 Dec 2005 09:54:49 +0000 Message-ID: <22479.1134467689@warthog.cambridge.redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 456 Lines: 13 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 - 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/