]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - drivers/tty/serial/8250/8250_core.c
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / drivers / tty / serial / 8250 / 8250_core.c
index 240a361b674fe72ce657067e5303156b7add6a6f..55e2492671444883e230ae491bf831b51d033c6c 100644 (file)
@@ -58,7 +58,16 @@ static struct uart_driver serial8250_reg;
 
 static unsigned int skip_txen_test; /* force skip of txen test at init time */
 
-#define PASS_LIMIT     512
+/*
+ * On -rt we can have a more delays, and legitimately
+ * so - so don't drop work spuriously and spam the
+ * syslog:
+ */
+#ifdef CONFIG_PREEMPT_RT_FULL
+# define PASS_LIMIT    1000000
+#else
+# define PASS_LIMIT    512
+#endif
 
 #include <asm/serial.h>
 /*