projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cab093b
)
[PATCH] x86_64: Add cpu_relax to apic_wait_icr_idle
author
Andreas Mohr
<andi@rhlx01.fht-esslingen.de>
Mon, 26 Jun 2006 11:59:29 +0000
(13:59 +0200)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:21 +0000
(10:48 -0700)
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>
include/asm-x86_64/apic.h
patch
|
blob
|
history
diff --git
a/include/asm-x86_64/apic.h
b/include/asm-x86_64/apic.h
index
9d43ac8
..
9c96a0a
100644
(file)
--- 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)