summaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/apic.h
diff options
context:
space:
mode:
authorAndreas Mohr <andi@rhlx01.fht-esslingen.de>2006-06-26 13:59:29 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 10:48:21 -0700
commit899ced0dd9457b9c349663ca4cb4ec09167728a6 (patch)
tree9b23a1d8fa804b28dba69df494bc8dc16d772738 /include/asm-x86_64/apic.h
parentcab093b9d4b40c71c6261a11ba8f1ca027e09008 (diff)
downloadop-kernel-dev-899ced0dd9457b9c349663ca4cb4ec09167728a6.zip
op-kernel-dev-899ced0dd9457b9c349663ca4cb4ec09167728a6.tar.gz
[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 <andi@lisas.de> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64/apic.h')
-rw-r--r--include/asm-x86_64/apic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-x86_64/apic.h b/include/asm-x86_64/apic.h
index 9d43ac8..9c96a0a 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)
OpenPOWER on IntegriCloud