diff options
author | Johan Hovold <johan@kernel.org> | 2015-03-04 10:39:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-07 03:44:15 +0100 |
commit | c37bc682e30b8027054356214eb8a3aafbda8e37 (patch) | |
tree | d7dd1f756b4d9b27d9732a1d9ffc5325ffa80ab2 /drivers/rtc/rtc-at91rm9200.c | |
parent | 79fbf4a550ed6a22e1ae1516113e6c7fa5d56a53 (diff) |
TTY: fix tty_wait_until_sent maximum timeout
Currently tty_wait_until_sent may take up to twice as long as the
requested timeout while waiting for driver and hardware buffers to
drain.
Fix this by taking the remaining number of jiffies after waiting for
driver buffers to drain into account so that the timeout actually
becomes a maximum timeout as it is documented to be.
Note that this specifically implies tighter timings when closing a port
as a consequence of actually honouring the port closing-wait setting
for drivers relying on tty_wait_until_sent_from_close (e.g. via
tty_port_close_start).
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc/rtc-at91rm9200.c')
0 files changed, 0 insertions, 0 deletions