make uclibc 0.9.30.1 the default
[openwrt.git] / target / linux / s3c24xx / patches-2.6.30 / 080-nr-tty-devices.patch
1 Index: linux-2.6.30-rc6/include/linux/vt.h
2 ===================================================================
3 --- linux-2.6.30-rc6.orig/include/linux/vt.h    2009-05-16 06:12:57.000000000 +0200
4 +++ linux-2.6.30-rc6/include/linux/vt.h 2009-05-18 19:08:35.000000000 +0200
5 @@ -18,8 +18,19 @@
6   * resizing).
7   */
8  #define MIN_NR_CONSOLES 1       /* must be at least 1 */
9 +#if (CONFIG_NR_TTY_DEVICES < 4)
10 +/* Lower Limit */
11 +#define MAX_NR_CONSOLES        4       /* serial lines start at 64 */
12 +#define MAX_NR_USER_CONSOLES 4 /* must be root to allocate above this */
13 +#elif (CONFIG_NR_TTY_DEVICES > 63)
14 +/* Upper Limit */
15  #define MAX_NR_CONSOLES        63      /* serial lines start at 64 */
16  #define MAX_NR_USER_CONSOLES 63        /* must be root to allocate above this */
17 +#else
18 +/* They chose a sensible number */
19 +#define MAX_NR_CONSOLES CONFIG_NR_TTY_DEVICES
20 +#define MAX_NR_USER_CONSOLES CONFIG_NR_TTY_DEVICES
21 +#endif
22                 /* Note: the ioctl VT_GETSTATE does not work for
23                    consoles 16 and higher (since it returns a short) */
24  
25 Index: linux-2.6.30-rc6/drivers/char/Kconfig
26 ===================================================================
27 --- linux-2.6.30-rc6.orig/drivers/char/Kconfig  2009-05-18 19:07:07.000000000 +0200
28 +++ linux-2.6.30-rc6/drivers/char/Kconfig       2009-05-18 19:08:35.000000000 +0200
29 @@ -66,6 +66,18 @@
30  
31           If unsure, say Y.
32  
33 +config NR_TTY_DEVICES
34 +       int "Maximum tty device number"
35 +       depends on VT
36 +       default 63
37 +       ---help---
38 +         This is the highest numbered device created in /dev. You will actually have
39 +         NR_TTY_DEVICES+1 devices in /dev. The default is 63, which will result in
40 +         64 /dev entries. The lowest number you can set is 11, anything below that, 
41 +         and it will default to 11. 63 is also the upper limit so we don't overrun
42 +         the serial consoles.
43 +
44 +
45  config HW_CONSOLE
46         bool
47         depends on VT && !S390 && !UML