Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation

David Howells
2005-12-14T10:54:40Z

Nick Piggin <nickpiggin@yahoo.com.au> wrote:

> atomic_cmpxchg should be available on all platforms.

Two points:

(1) If it's using spinlocks, then it's pointless to use atomic_cmpxchg.

(2) atomic_t is a 32-bit type, and on a 64-bit platform I will want a 64-bit
type so that I can stick the owner address in there (I've got a second
variant not yet released).

David