Revision c37bc682e30b8027054356214eb8a3aafbda8e37 authored by Johan Hovold on 04 March 2015, 09:39:07 UTC, committed by Greg Kroah-Hartman on 07 March 2015, 02:44:15 UTC
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>
1 parent 79fbf4a
File | Mode | Size |
---|---|---|
configs | ||
include | ||
kernel | ||
lib | ||
math-emu | ||
mm | ||
oprofile | ||
Kconfig | -rw-r--r-- | 7.8 KB |
Kconfig.debug | -rw-r--r-- | 513 bytes |
Makefile | -rw-r--r-- | 4.6 KB |
defpalo.conf | -rw-r--r-- | 815 bytes |
install.sh | -rw-r--r-- | 1.6 KB |
nm | -rw-r--r-- | 194 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...