Re: cpu_relax(), rep: nop, and PAUSE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 19, 2013 at 7:20 PM, David Shwatrz <dshwatrz@xxxxxxxxx> wrote:
> Hi, kernel newbies,
>
> We have:
> #define cpu_relax()     asm volatile("rep; nop")
> in arch/x86/boot/boot.h.
>
> Why don't we use the PAUSE assembler instruction here ?

Just guessing, maybe rep+nop could do better power saving because
processor is considered as idle.



-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux