Re: Why Semaphore Hardware-Dependent?

From: Christoph Lameter
Date: Wed Sep 13 2006 - 14:17:18 EST


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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/