From: Andreas Mohr Date: Mon, 26 Jun 2006 11:59:29 +0000 (+0200) Subject: [PATCH] x86_64: Add cpu_relax to apic_wait_icr_idle X-Git-Tag: v2.6.18-rc1~612^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=899ced0dd9457b9c349663ca4cb4ec09167728a6;p=linux-2.6-omap-h63xx.git [PATCH] x86_64: Add cpu_relax to apic_wait_icr_idle This one is adding a cpu_relax() that already existed in the i386 version. Signed-off-by: Andreas Mohr Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/include/asm-x86_64/apic.h b/include/asm-x86_64/apic.h index 9d43ac8519b..9c96a0a8d1b 100644 --- a/include/asm-x86_64/apic.h +++ b/include/asm-x86_64/apic.h @@ -49,7 +49,8 @@ static __inline unsigned int apic_read(unsigned long reg) static __inline__ void apic_wait_icr_idle(void) { - while ( apic_read( APIC_ICR ) & APIC_ICR_BUSY ); + while (apic_read( APIC_ICR ) & APIC_ICR_BUSY) + cpu_relax(); } static inline void ack_APIC_irq(void)