Re: Why Semaphore Hardware-Dependent?

Christoph Lameter
2006-09-13T18:16:58Z

On Thu, 14 Sep 2006, Nick Piggin wrote:

> Oh really? OK I figured if ppc64 was OK then that would be enough,
> but your large Altix systems did slip my mind.

Look at the ia64 rwsem implementation in include/asm-ia64/rwsem.h.

> That is a fair criticism... atomic_long it will have to be, then.
> That will require a bit of atomic work to get atomic64_cmpxchg
> available on all 64-bit architectures.

I would greatly appreciate having that.