Skip to content
  • Derek Fults's avatar
    [PATCH] get_options to allow a hypenated range for isolcpus · 22f2e280
    Derek Fults authored
    
    
    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>
    Valid values of <cpu_number>  include all cpus, 0 to "number of CPUs in
    system - 1". This can get extremely long when isolating the majority of
    cpus on a large system.  The kernel isolcpus code would not need any
    changing to use this feature.  To use it, the change would be in the
    command line format for 'isolcpus='
    Format:
    <cpu number>,...,<cpu number>
    or
    <cpu number>-<cpu number>  (must be a positive range in ascending
    order.)
    or a mixture
    <cpu number>,...,<cpu number>-<cpu number>
    
    Signed-off-by: default avatarDerek Fults <dfults@sgi.com>
    Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    22f2e280