Skip to content

Commit

Permalink
[PATCH] x86_64: Add cpu_relax to apic_wait_icr_idle
Browse files Browse the repository at this point in the history
This one is adding a cpu_relax() that already existed in the i386 version.

Signed-off-by: Andreas Mohr <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andreas Mohr authored and Linus Torvalds committed Jun 26, 2006
1 parent cab093b commit 899ced0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-x86_64/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 899ced0

Please sign in to comment.