Re: [PATCH] Allow a hyphenated range in get_options, with cleanup

From: Andi Kleen
Date: Tue Oct 31 2006 - 16:12:39 EST


Derek Fults <dfults@xxxxxxx> writes:

> This allows a hyphenated range of positive numbers in the string passed
> to command line helper function, get_options.
> Currently the command line option "isolcpus=" takes as its argument a
> list of cpus.
> Format: <cpu number>,...,<cpu number>
> This can get extremely long when isolating the majority of cpus on a
> large system. Valid values of <cpu_number> include all cpus, 0 to
> "number of CPUs in system - 1".

It would be better if you defined a separate function for this
instead of defining such a weird calling convention.

The common code with get_options could be factored out into a helper.

-Andi
-
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/