patch-2.4.20 linux-2.4.20/drivers/char/console.c

Next file: linux-2.4.20/drivers/char/cyclades.c
Previous file: linux-2.4.20/drivers/char/amiserial.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/char/console.c linux-2.4.20/drivers/char/console.c
@@ -1421,7 +1421,10 @@
 	kbd_table[currcons].slockstate = 0;
 	kbd_table[currcons].ledmode = LED_SHOW_FLAGS;
 	kbd_table[currcons].ledflagstate = kbd_table[currcons].default_ledflagstate;
-	set_leds();
+	
+	/* Only schedule the keyboard_tasklet if it is enabled. */
+	if(!atomic_read(&keyboard_tasklet.count))
+		set_leds();
 
 	cursor_type = CUR_DEFAULT;
 	complement_mask = s_complement_mask;

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