Re: [PATCH] generalized spin_lock_bit

Alan Cox (alan@lxorguk.ukuu.org.uk)
21 Jul 2002 14:48:54 +0100


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/