tty: Abstract tty buffer work
Introduce API functions to restart and cancel tty buffer work, rather than manipulate buffer work directly. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Este cometimento está contido em:

cometido por
Greg Kroah-Hartman

ascendente
4b41b9539a
cometimento
e176058f0d
@@ -130,7 +130,7 @@ EXPORT_SYMBOL(tty_port_free_xmit_buf);
|
||||
*/
|
||||
void tty_port_destroy(struct tty_port *port)
|
||||
{
|
||||
cancel_work_sync(&port->buf.work);
|
||||
tty_buffer_cancel_work(port);
|
||||
tty_buffer_free_all(port);
|
||||
}
|
||||
EXPORT_SYMBOL(tty_port_destroy);
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador