mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
[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>
This commit is contained in:
parent
e480af09c4
commit
d8d64d6b29
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ uart_handle_sysrq_char(struct uart_port *port, unsigned int ch,
|
||||||
#ifdef SUPPORT_SYSRQ
|
#ifdef SUPPORT_SYSRQ
|
||||||
if (port->sysrq) {
|
if (port->sysrq) {
|
||||||
if (ch && time_before(jiffies, port->sysrq)) {
|
if (ch && time_before(jiffies, port->sysrq)) {
|
||||||
handle_sysrq(ch, regs, NULL);
|
handle_sysrq(ch, regs, port->info->tty);
|
||||||
port->sysrq = 0;
|
port->sysrq = 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue