[parisc-linux] Anyone got a few moments?

Alan Cox alan@lxorguk.ukuu.org.uk
Mon, 28 Jun 1999 20:12:08 +0100 (BST)


> Okay.  Do you think we stand a chance of pushing a new call past linux
> -- get_and_zero(*ptr), as this will make most of the calls efficient
> on PA-RISC?  Or would a better idea be to check if the argument to be
> swapped is zero; if it is use the special instructions; if not fall back
> to a spinlock?

For now I'd get it working with xchg() - the zero check isnt worth it. Get
it going the stupid way then worry