patch-2.3.43 linux/drivers/char/keyboard.c

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

diff -u --recursive --new-file v2.3.42/linux/drivers/char/keyboard.c linux/drivers/char/keyboard.c
@@ -898,7 +898,7 @@
  * used, but this allows for easy and efficient race-condition
  * prevention later on.
  */
-static void kbd_bh(void)
+static void kbd_bh(unsigned long dummy)
 {
 	unsigned char leds = getleds();
 
@@ -909,6 +909,8 @@
 	}
 }
 
+DECLARE_TASKLET_DISABLED(keyboard_tasklet, kbd_bh, 0);
+
 int __init kbd_init(void)
 {
 	int i;
@@ -928,8 +930,9 @@
 	ttytab = console_driver.table;
 
 	kbd_init_hw();
-	init_bh(KEYBOARD_BH, kbd_bh);
-	mark_bh(KEYBOARD_BH);
+
+	tasklet_enable(&keyboard_tasklet);
+	tasklet_schedule(&keyboard_tasklet);
 	
 	pm_kbd = pm_register(PM_SYS_DEV, PM_SYS_KBC, NULL);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)