43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
|
From 9bc676e2756ffbd91e9fccab878216fc98ab7c49 Mon Sep 17 00:00:00 2001
|
|||
|
From: Ingo Molnar <mingo@elte.hu>
|
|||
|
Date: Wed, 14 Dec 2011 13:05:54 +0100
|
|||
|
Subject: [PATCH 189/365] rt: Improve the serial console PASS_LIMIT
|
|||
|
MIME-Version: 1.0
|
|||
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
Content-Transfer-Encoding: 8bit
|
|||
|
|
|||
|
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.
|
|||
|
|
|||
|
Change-Id: Ia245a834bf5993217a28e8b772bbb9effd4952ee
|
|||
|
Signed-off-by: Ingo Molnar <mingo@elte.hu>
|
|||
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|||
|
---
|
|||
|
drivers/tty/serial/8250/8250_core.c | 6 +++++-
|
|||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|||
|
|
|||
|
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
|
|||
|
index e68f0b78c31d..7b9851ca8933 100644
|
|||
|
--- a/drivers/tty/serial/8250/8250_core.c
|
|||
|
+++ b/drivers/tty/serial/8250/8250_core.c
|
|||
|
@@ -66,7 +66,11 @@ static unsigned int skip_txen_test; /* force skip of txen test at init time */
|
|||
|
* Even in non-rt environment (under hypervisor) this constant might be
|
|||
|
* too small
|
|||
|
*/
|
|||
|
-#define PASS_LIMIT 1000000
|
|||
|
+#ifdef CONFIG_PREEMPT_RT_FULL
|
|||
|
+# define PASS_LIMIT 1000000
|
|||
|
+#else
|
|||
|
+# define PASS_LIMIT 512
|
|||
|
+#endif
|
|||
|
|
|||
|
#include <asm/serial.h>
|
|||
|
/*
|
|||
|
--
|
|||
|
2.28.0
|
|||
|
|