diff options
| author | Ilpo Järvinen <[email protected]> | 2022-06-13 14:39:05 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-06-27 14:34:45 +0200 |
| commit | f9008285bb69e4713918a665250ab2d356b731ba (patch) | |
| tree | dd37d533edbf6b5fb962959ecc1484054e932903 /include/linux/start_kernel.h | |
| parent | ab24a01b276508dc884761bcb8e2759c36702377 (diff) | |
serial: Drop timeout from uart_port
Since commit 31f6bd7fad3b ("serial: Store character timing information
to uart_port"), per frame timing information is available on uart_port.
Uart port's timeout can be derived from frame_time by multiplying with
fifosize.
Most callers of uart_poll_timeout are not made under port's lock. To be
on the safe side, make sure frame_time is only accessed once. As
fifo_size is effectively a constant, it shouldn't cause any issues.
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions