Skip to content

Commit

Permalink
x86: reboot: remove inb_p usage
Browse files Browse the repository at this point in the history
We are driving a motherboard port so use a 2uS explicit delay at this
point.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Alan Cox authored and Ingo Molnar committed Jan 30, 2008
1 parent 08b6d29 commit c84d6af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,11 @@ static inline void kb_wait(void)
{
int i;

for (i = 0; i < 0x10000; i++)
if ((inb_p(0x64) & 0x02) == 0)
for (i = 0; i < 0x10000; i++) {
if ((inb(0x64) & 0x02) == 0)
break;
udelay(2);
}
}

void machine_emergency_restart(void)
Expand Down

0 comments on commit c84d6af

Please sign in to comment.