Skip to content

Commit

Permalink
[SERIAL] Magic SysRq SAK does nothing on serial consoles
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Simon Tatham authored and Russell King committed Oct 1, 2006
1 parent e480af0 commit d8d64d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/serial_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d8d64d6

Please sign in to comment.