[parisc-linux-cvs] Fix for keyboard tasklet problem.

Ryan Bradetich rbradetich@uswest.net
11 Dec 2001 21:06:48 -0700


--=-0TDLOoTKCCsNl1RhbXZA
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

This commit fixes the keyboard tasklet issue I found and described in
the following email:

http://lists.parisc-linux.org/pipermail/parisc-linux/2001-November/014727.html

bumped version to 2.4.16-pa18.

- Ryan


--=-0TDLOoTKCCsNl1RhbXZA
Content-Disposition: attachment; filename=console.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1

Index: drivers/char/console.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/linux/drivers/char/console.c,v
retrieving revision 1.15
diff -u -p -r1.15 console.c
--- drivers/char/console.c	2001/11/09 23:35:36	1.15
+++ drivers/char/console.c	2001/12/12 03:57:54
@@ -1420,7 +1420,10 @@ static void reset_terminal(int currcons,
 	kbd_table[currcons].slockstate =3D 0;
 	kbd_table[currcons].ledmode =3D LED_SHOW_FLAGS;
 	kbd_table[currcons].ledflagstate =3D kbd_table[currcons].default_ledflags=
tate;
-	set_leds();
+=09
+	/* Only schedule the keyboard_tasklet if it is enabled. */
+	if(!atomic_read(&keyboard_tasklet.count))
+		set_leds();
=20
 	cursor_type =3D CUR_DEFAULT;
 	complement_mask =3D s_complement_mask;

--=-0TDLOoTKCCsNl1RhbXZA--