aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-12-14 13:05:54 +0100
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>2019-07-11 17:28:16 +0200
commit6cce6476f0f55aaaadb95e5c754724758473fe9f (patch)
tree592bdb7560718bfdf53cf354e61ab54cb4c9ba8d
parent3f1be0187a3b9d1b64dff1b779351a2b74d4ff90 (diff)
downloadlinux-rt-devel-6cce6476f0f55aaaadb95e5c754724758473fe9f.tar.gz
rt: Improve the serial console PASS_LIMIT
Beyond the warning: drivers/tty/serial/8250/8250.c:1613:6: warning: unused variable ‘pass_counter’ [-Wunused-variable] the solution of just looping infinitely was ugly - up it to 1 million to give it a chance to continue in some really ugly situation. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--drivers/tty/serial/8250/8250_core.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
index 1daea9709ce2b7..047c32f1af428d 100644
--- a/drivers/tty/serial/8250/8250_core.c
+++ b/drivers/tty/serial/8250/8250_core.c
@@ -54,7 +54,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>
/*