summary'>refs'>logtreecommitdiff'>stats
path: '>root//'>sys-kernel/boest-v4.14.74//0005-pool-2.6.25-disable-kbdrate-at-boot.diff.patch
blob: e83dceceb1a3b5b9e30325feb82d5c03ec71c4c1 ('>plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From e0d29d7374b306bd8d67b804e1c958dc9e64e323 Mon Sep 17 00:00:00 2001
From: Willy Tarreau <w@1wt.eu>
Date: Sun, 15 Feb 2009 14:51:33 +0100
Subject: [PATCH 05/18] pool/2.6.25-disable-kbdrate-at-boot.diff

From http://linux.1wt.eu/alix/kernel-src/2.6.27-wt11/patches-2.6.27-wt11.tar.bz2


Reviewed-by: Bertrand Jacquin <bertrand@jacquin.bzh>
Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh>
---
 arch/x86/boot/main.c | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/arch/x86/boot/main.c b/arch/x86/boot/main.c
index 9bcea386db65..fd2d8e4e7d3a 100644
--- a/arch/x86/boot/main.c
+++ b/arch/x86/boot/main.c
@@ -64,6 +64,8 @@ static void copy_boot_params(void)
  */
 static void keyboard_init(void)
 {
+/*This may take several seconds if the system has no kbd controller */
+#ifdef CONFIG_INPUT_KEYBOARD
 	struct biosregs ireg, oreg;
 	initregs(&ireg);

 
@@ -73,6 +75,7 @@ static void keyboard_init(void)
 
 	ireg.ax = 0x0305;	/* Set keyboard repeat rate */
 	intcall(0x16, &ireg, NULL);
+#endif
 }

 
 /*