[PATCH] fix magic sysrq on strange keyboards
commitd2be8ee53856c3c510d4d38f534979747db65d96
authorFredrik Roubert <roubert@df.lth.se>
Mon, 26 Jun 2006 07:24:35 +0000 (26 00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:17 +0000 (26 09:58 -0700)
tree41ee3ded18d9b9f24a287c865e4ff66966dce907
parent0c6856f702732d3cfc33eb59303e998ad6961de8
[PATCH] fix magic sysrq on strange keyboards

Magic sysrq fails to work on many keyboards, particulary most of notebook
keyboards.  This patch fixes it.

The idea is quite simple: Discard the SysRq break code if Alt is still being
held down.  This way the broken keyboard can send the break code (or the user
with a normal keyboard can release the SysRq key) and the kernel waits until
the next key is pressed or the Alt key is released.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/keyboard.c