aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2006-09-25 16:51:28 -0700
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-10-01 20:03:20 +0100
commitd8d64d6b29d331f1217c77999f5104fe68b0ef3a (patch)
tree0c8fc021cc17a0ce0c3e37c8912eda8d9a31aec2
parente480af09c49736848f749a43dff2c902104f6691 (diff)
downloadkernel_samsung_espresso10-d8d64d6b29d331f1217c77999f5104fe68b0ef3a.zip
kernel_samsung_espresso10-d8d64d6b29d331f1217c77999f5104fe68b0ef3a.tar.gz
kernel_samsung_espresso10-d8d64d6b29d331f1217c77999f5104fe68b0ef3a.tar.bz2
[SERIAL] Magic SysRq SAK does nothing on serial consoles
Make sysrq-K work on serial console by passing in the tty. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--include/linux/serial_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index f9fdf97..de2e681 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -415,7 +415,7 @@ uart_handle_sysrq_char(struct uart_port *port, unsigned int ch,
#ifdef SUPPORT_SYSRQ
if (port->sysrq) {
if (ch && time_before(jiffies, port->sysrq)) {
- handle_sysrq(ch, regs, NULL);
+ handle_sysrq(ch, regs, port->info->tty);
port->sysrq = 0;
return 1;
}