]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - drivers/char/tty_io.c
tty: add more tty_port fields
[mirror_ubuntu-focal-kernel.git] / drivers / char / tty_io.c
index a8cc416a23c07d7ac66de28e508567587ac1f5e4..82f6a8c863320101f3f8a677f34192d03bded8d2 100644 (file)
@@ -2094,6 +2094,8 @@ void tty_port_init(struct tty_port *port)
        init_waitqueue_head(&port->open_wait);
        init_waitqueue_head(&port->close_wait);
        mutex_init(&port->mutex);
+       port->close_delay = (50 * HZ) / 100;
+       port->closing_wait = (3000 * HZ) / 100;
 }
 EXPORT_SYMBOL(tty_port_init);