Re: SMP Pentium4 -- PAUSE Instruction

From: Arjan van de Ven (arjanv@redhat.com)
Date: Tue Dec 03 2002 - 11:06:16 EST


On Tue, 2002-12-03 at 16:42, Calin A. Culianu wrote:

> Is this instruction being used in spin-wait loops? For some reason, I am
> having a hard time figuring out whether or not it is being used. There is
> a rep_nop() in processor.h.. but I can't determine if that is being called
> for spin lock lock/unlock code.

check cpu_relax() all over the kernel :)
and the spinlock code uses it inside it's own asm directly, not via
rep_nop()

-
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 : Sat Dec 07 2002 - 22:00:16 EST