瀏覽代碼

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>
Alan Cox 17 年之前
父節點
當前提交
c84d6af881
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      arch/x86/kernel/reboot.c

+ 4 - 2
arch/x86/kernel/reboot.c

@@ -319,9 +319,11 @@ static inline void kb_wait(void)
 {
 {
 	int i;
 	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;
 			break;
+		udelay(2);
+	}
 }
 }
 
 
 void machine_emergency_restart(void)
 void machine_emergency_restart(void)