2018-08-27 14:32:32 +00:00
|
|
|
|
Subject: rt: Improve the serial console PASS_LIMIT
|
|
|
|
|
From: Ingo Molnar <mingo@elte.hu>
|
|
|
|
|
Date: Wed Dec 14 13:05:54 CET 2011
|
2019-02-27 18:51:46 +00:00
|
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.25-rt16.tar.xz
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
---
|
|
|
|
|
drivers/tty/serial/8250/8250_core.c | 11 ++++++++++-
|
|
|
|
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
--- 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>
|
|
|
|
|
/*
|