[lkml]   [2005]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/19] MUTEX: Introduce simple mutex implementation
David Howells wrote:
> Nick Piggin <> 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).

I'm sure you could use a seperate field as it would be a debug
option, right?

But atomic longs are coming along and it is probably feasable to
do 64-bit atomic_cmpxchg on all 64-bit word architectures if you
really needed that.

Send instant messages to your online friends

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-12-14 12:20    [W:0.167 / U:15.076 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site