[PATCH 1/1] serial/uuc_uart: Set shutdown timeout to CONFIG_HZ independent 2ms
Alexander Stein
alexander.stein at systec-electronic.com
Tue Dec 6 02:50:58 AEDT 2016
schedule_timeout takes a timeout in jiffies resolution. So pass 2ms
as a converted jiffies value. This makes the timeout independent of
CONFIG_HZ.
Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
---
drivers/tty/serial/ucc_uart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/ucc_uart.c b/drivers/tty/serial/ucc_uart.c
index 481eb29..c6c01a4 100644
--- a/drivers/tty/serial/ucc_uart.c
+++ b/drivers/tty/serial/ucc_uart.c
@@ -827,7 +827,7 @@ static void qe_uart_shutdown(struct uart_port *port)
break;
}
set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(2);
+ schedule_timeout(msecs_to_jiffies(2));
}
if (qe_port->wait_closing) {
--
2.7.3
More information about the Linuxppc-dev
mailing list