Re: [PATCH] generalized spin_lock_bit

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Jul 21 2002 - 08:48:54 EST


On Sun, 2002-07-21 at 02:31, David S. Miller wrote:
> For an asm-generic/bitlock.h implementation it is more than
> fine. That way we get asm-i386/bitlock.h that does whatever
> it wants to do and the rest of asm-*/bitlock.h includes
> the generic version until the arch maintainer sees fit to
> do otherwise.

For an asm-generic one yes. Although you do need to add a cpu_relax() in
the inner loop

Alan

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



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:35 EST