diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2008-01-30 07:33:25 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:25 -0500 |
commit | c84d6af881be84687fa924f16b2f4b4690354165 (patch) | |
tree | b0e2d7a170cf622e424dac7fad94e43353e74050 | |
parent | 08b6d290f977d8145804fd2b9bc2c331f2484f8e (diff) |
x86: reboot: remove inb_p usage
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>
-rw-r--r-- | arch/x86/kernel/reboot.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index 5b32f0b4d133..5818dc28167d 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c | |||
@@ -319,9 +319,11 @@ static inline void kb_wait(void) | |||
319 | { | 319 | { |
320 | int i; | 320 | int i; |
321 | 321 | ||
322 | for (i = 0; i < 0x10000; i++) | 322 | for (i = 0; i < 0x10000; i++) { |
323 | if ((inb_p(0x64) & 0x02) == 0) | 323 | if ((inb(0x64) & 0x02) == 0) |
324 | break; | 324 | break; |
325 | udelay(2); | ||
326 | } | ||
325 | } | 327 | } |
326 | 328 | ||
327 | void machine_emergency_restart(void) | 329 | void machine_emergency_restart(void) |