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

David Howells
2005-12-16T11:30:01Z

David Howells <dhowells@redhat.com> wrote:

> No, they're not. LL/SC is more flexible than CMPXCHG because under some
> circumstances, you can get away without doing the SC,

Of course, CMPXCHG doesn't have to store either, though it still performs a
locked-write-cycle on x86 if I remember correctly.

David