2018-08-27 14:32:32 +00:00
|
|
|
|
From: Ingo Molnar <mingo@elte.hu>
|
2019-04-08 23:49:20 +00:00
|
|
|
|
Date: Wed, 14 Dec 2011 13:05:54 +0100
|
2019-11-25 00:04:39 +00:00
|
|
|
|
Subject: [PATCH 168/290] rt: Improve the serial console PASS_LIMIT
|
2019-04-08 23:49:20 +00:00
|
|
|
|
MIME-Version: 1.0
|
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2019-11-25 00:04:39 +00:00
|
|
|
|
Origin: https://git.kernel.org/cgit/linux/kernel/git/rt/linux-stable-rt.git/commit?id=6cb957cb6dd7593e888563c6d3dc8ddfc96d1179
|
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>
|
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
|
drivers/tty/serial/8250/8250_core.c | 11 ++++++++++-
|
2018-08-27 14:32:32 +00:00
|
|
|
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
|
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
|
|
|
|
|
index 8fe3d0ed229e..a2baac4c8b63 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
|
--- a/drivers/tty/serial/8250/8250_core.c
|
|
|
|
|
+++ b/drivers/tty/serial/8250/8250_core.c
|
2019-04-08 23:49:20 +00:00
|
|
|
|
@@ -54,7 +54,16 @@ static struct uart_driver serial8250_reg;
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
/*
|