Re: serial: SERIAL_8250_RUNTIME_UARTS must be <= SERIAL_8250_NR_UARTS

From: Dave Jones
Date: Mon Feb 06 2006 - 14:40:47 EST


On Mon, Feb 06, 2006 at 09:42:19PM +1100, Yuki Cuss wrote:
> David Vrabel wrote:
>
> >If SERIAL_8250_RUNTIME_UARTS is > SERIAL_8250_NR_UARTS then more serial
> >ports are registered than we've allocated memory for. Prevent this by
> >limiting SERIAL_8250_RUNTIME_UARTS in the serial Kconfig.
> >
> >Signed-off-by: David Vrabel <dvrabel@xxxxxxxxx>
> >
> >
>
> Is there any real use case for having *less* registered serial ports and
> having some spare?

Having the ability to build a kernel image which supports many serial ports,
whilst at the same same time when booted on the common-case systems with
two serial ports, not creating so many /dev/ttyS* nodes or sysfs objects
wasting ram that'll never be used or reclaimed.

Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/