lkml.org 
[lkml]   [2002]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectSMP Pentium4 -- PAUSE Instruction

I as wondering -- according to Intel's docs they recommend that on a P4
processor to use the PAUSE instruction (aka rep followed by a nop) inside
any spin loop (such as one used in SMP spinlock code) in order to both
improve processor performance and reduce power consumption.

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.


-Calin


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.044 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site