summary'>refsloglog'>tree'>commitdiffstats
path: '>root//'>sys-kernel/'>boest-v4.14.119//'>0005-pool-2.6.25-disable-kbdrate-at-boot.diff.patch
blob: 4344d8009e41e6dad8e31a8072702862f9c69459 (plain) (blame)
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 c28777dee3ed27f13b60c07fb5096f8dc8900f25 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
 }
 
 /*