patch-2.1.104 linux/drivers/char/pc_keyb.c

Next file: linux/drivers/char/pcwd.c
Previous file: linux/drivers/char/msp3400.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.103/linux/drivers/char/pc_keyb.c linux/drivers/char/pc_keyb.c
@@ -231,7 +231,7 @@
 	do {
 		if (! (inb_p(KBD_STATUS_REG) & KBD_STAT_IBF))
 			return;
-		udelay(1000);
+		mdelay(1);
 		timeout--;
 	} while (timeout);
 #ifdef KBD_REPORT_TIMEOUTS
@@ -583,7 +583,7 @@
 				return 1;
 			if (resend)
 				break;
-			udelay(1000);
+			mdelay(1);
 			if (!--timeout) {
 #ifdef KBD_REPORT_TIMEOUTS
 				printk(KERN_WARNING "Keyboard timeout\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov