From: Simon Tatham Date: Mon, 25 Sep 2006 23:51:28 +0000 (-0700) Subject: [SERIAL] Magic SysRq SAK does nothing on serial consoles X-Git-Tag: v2.6.19-rc1~215^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d64d6b29d331f1217c77999f5104fe68b0ef3a;p=linux-2.6 [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 Signed-off-by: Russell King --- diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index f9fdf97506..de2e68159d 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; }