mirror of https://gitee.com/openkylin/linux.git
tty: Allow unreadable mess to be > 80 chars
Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8d082cd300
commit
5823323ea5
|
@ -510,10 +510,8 @@ void tty_port_close_end(struct tty_port *port, struct tty_struct *tty)
|
||||||
|
|
||||||
if (port->blocked_open) {
|
if (port->blocked_open) {
|
||||||
spin_unlock_irqrestore(&port->lock, flags);
|
spin_unlock_irqrestore(&port->lock, flags);
|
||||||
if (port->close_delay) {
|
if (port->close_delay)
|
||||||
msleep_interruptible(
|
msleep_interruptible(jiffies_to_msecs(port->close_delay));
|
||||||
jiffies_to_msecs(port->close_delay));
|
|
||||||
}
|
|
||||||
spin_lock_irqsave(&port->lock, flags);
|
spin_lock_irqsave(&port->lock, flags);
|
||||||
wake_up_interruptible(&port->open_wait);
|
wake_up_interruptible(&port->open_wait);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue