[parisc-linux] spinlocks

Alan Cox alan@lxorguk.ukuu.org.uk
Fri, 5 Jan 2001 17:43:21 +0000 (GMT)


> A better design is to repeatedly load the value until it becomes non-zero,
> and only then try to ldcw it.  This way, all processors have a read-only
> copy of the cache line and checking its value has no effect on the bus.
> In C, this could be implemented as:

Very much so on most architectures - you should read Unix Systems for 
Modern Architectures. If I'd know you hadn't I'd have forcefed it to you when
you visited 

>