r1203 - trunk/src/target/kernel/patches
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Thu Mar 1 20:29:02 CET 2007
Author: laforge
Date: 2007-03-01 20:29:01 +0100 (Thu, 01 Mar 2007)
New Revision: 1203
Added:
trunk/src/target/kernel/patches/config-nr-tty-devices.patch
Modified:
trunk/src/target/kernel/patches/series
Log:
* decrease the number of VT devices to four, this gives a udev speedup.
Also, we won't use that many VT's anyway. It's a phone, after all
Added: trunk/src/target/kernel/patches/config-nr-tty-devices.patch
===================================================================
--- trunk/src/target/kernel/patches/config-nr-tty-devices.patch 2007-03-01 18:49:02 UTC (rev 1202)
+++ trunk/src/target/kernel/patches/config-nr-tty-devices.patch 2007-03-01 19:29:01 UTC (rev 1203)
@@ -0,0 +1,47 @@
+Index: linux-2.6.20.1/drivers/char/Kconfig
+===================================================================
+--- linux-2.6.20.1.orig/drivers/char/Kconfig 2007-02-26 00:46:56.000000000 +0100
++++ linux-2.6.20.1/drivers/char/Kconfig 2007-03-01 16:00:01.000000000 +0100
+@@ -57,6 +57,18 @@
+
+ If unsure, say Y.
+
++config NR_TTY_DEVICES
++ int "Maximum tty device number"
++ depends on VT
++ default 63
++ ---help---
++ This is the highest numbered device created in /dev. You will actually have
++ NR_TTY_DEVICES+1 devices in /dev. The default is 63, which will result in
++ 64 /dev entries. The lowest number you can set is 11, anything below that,
++ and it will default to 11. 63 is also the upper limit so we don't overrun
++ the serial consoles.
++
++
+ config HW_CONSOLE
+ bool
+ depends on VT && !S390 && !UML
+Index: linux-2.6.20.1/include/linux/vt.h
+===================================================================
+--- linux-2.6.20.1.orig/include/linux/vt.h 2007-03-01 16:04:03.000000000 +0100
++++ linux-2.6.20.1/include/linux/vt.h 2007-03-01 16:03:50.000000000 +0100
+@@ -6,8 +6,19 @@
+ * resizing).
+ */
+ #define MIN_NR_CONSOLES 1 /* must be at least 1 */
++#if (CONFIG_NR_TTY_DEVICES < 4)
++/* Lower Limit */
++#define MAX_NR_CONSOLES 4 /* serial lines start at 64 */
++#define MAX_NR_USER_CONSOLES 4 /* must be root to allocate above this */
++#elif (CONFIG_NR_TTY_DEVICES > 63)
++/* Upper Limit */
+ #define MAX_NR_CONSOLES 63 /* serial lines start at 64 */
+ #define MAX_NR_USER_CONSOLES 63 /* must be root to allocate above this */
++#else
++/* They chose a sensible number */
++#define MAX_NR_CONSOLES CONFIG_NR_TTY_DEVICES
++#define MAX_NR_USER_CONSOLES CONFIG_NR_TTY_DEVICES
++#endif
+ /* Note: the ioctl VT_GETSTATE does not work for
+ consoles 16 and higher (since it returns a short) */
+
Modified: trunk/src/target/kernel/patches/series
===================================================================
--- trunk/src/target/kernel/patches/series 2007-03-01 18:49:02 UTC (rev 1202)
+++ trunk/src/target/kernel/patches/series 2007-03-01 19:29:01 UTC (rev 1203)
@@ -32,3 +32,4 @@
input-nots-mousedev.patch
ts0710.patch
s3c2410-qt2410-buttons.patch
+config-nr-tty-devices.patch
More information about the commitlog
mailing list