[PATCH 15/21] KGDB: Fix possibility of missing SysRq-G

2007-10-15 Thread Jason Wessel
Signed-off-by: Jason Wessel <[EMAIL PROTECTED]>
sysrq_bugfix.patch

From: Jason Wessel <[EMAIL PROTECTED]>
Subject: [PATCH] Fix possibility of missing SysRq-G 

It is possible that when SysRq-G is triggered via the keyboard that we
will miss the "up" event and once KGDB lets the kernel go another
SysRq will be required to clear this, without this change.

Signed-off-by: Tom Rini <[EMAIL PROTECTED]>
Signed-off-by: Jason Wessel <[EMAIL PROTECTED]>
---
 drivers/char/keyboard.c |1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6.21.1/drivers/char/keyboard.c
===
--- linux-2.6.21.1.orig/drivers/char/keyboard.c
+++ linux-2.6.21.1/drivers/char/keyboard.c
@@ -1176,6 +1176,7 @@ static void kbd_keycode(unsigned int key
 		sysrq_down = 0;
 	if (sysrq_down && down && !rep) {
 		handle_sysrq(kbd_sysrq_xlate[keycode], tty);
+		sysrq_down = 0;		/* In case we miss the 'up' event. */
 		return;
 	}
 #endif


[PATCH 15/21] KGDB: Fix possibility of missing SysRq-G

2007-10-15 Thread Jason Wessel
Signed-off-by: Jason Wessel [EMAIL PROTECTED]
sysrq_bugfix.patch

From: Jason Wessel [EMAIL PROTECTED]
Subject: [PATCH] Fix possibility of missing SysRq-G 

It is possible that when SysRq-G is triggered via the keyboard that we
will miss the up event and once KGDB lets the kernel go another
SysRq will be required to clear this, without this change.

Signed-off-by: Tom Rini [EMAIL PROTECTED]
Signed-off-by: Jason Wessel [EMAIL PROTECTED]
---
 drivers/char/keyboard.c |1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6.21.1/drivers/char/keyboard.c
===
--- linux-2.6.21.1.orig/drivers/char/keyboard.c
+++ linux-2.6.21.1/drivers/char/keyboard.c
@@ -1176,6 +1176,7 @@ static void kbd_keycode(unsigned int key
 		sysrq_down = 0;
 	if (sysrq_down  down  !rep) {
 		handle_sysrq(kbd_sysrq_xlate[keycode], tty);
+		sysrq_down = 0;		/* In case we miss the 'up' event. */
 		return;
 	}
 #endif