Re: x86 - cpu_relax - why nop vs. pause?

Arjan van de Ven
2010-02-07T18:30:56Z

On Sun, 07 Feb 2010 12:28:51 -0500
Michael Breuer <mbreuer@majjas.com> wrote:

> I did search and noticed some old discussions. Looking at both Intel
> and AMD documentation, it would seem that PAUSE is the preferred
> instruction within a spin lock. Further, both Intel and AMD
> specifications state that the instruction is backward compatible with
> older x86 processors.
>

that's odd....

rep nop and pause ought to be the same...

--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org