mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
[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>
This commit is contained in:
parent
cab093b9d4
commit
899ced0dd9
@ -49,7 +49,8 @@ static __inline unsigned int apic_read(unsigned long reg)
|
|||||||
|
|
||||||
static __inline__ void apic_wait_icr_idle(void)
|
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)
|
static inline void ack_APIC_irq(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user