提交 d8d64d6b 编写于 作者: S Simon Tatham 提交者: Russell King

[SERIAL] Magic SysRq SAK does nothing on serial consoles

Make sysrq-K work on serial console by passing in the tty.
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 e480af09
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册