• Ingo Molnar's avatar
    smp: Avoid 'setup_max_cpus' namespace collision/shadowing · 4c8a4985
    Ingo Molnar authored
    
    
    bringup_nonboot_cpus() gets passed the 'setup_max_cpus'
    variable in init/main.c - which is also the name of the parameter,
    shadowing the name.
    
    To reduce confusion and to allow the 'setup_max_cpus' value
    to be #defined in the <linux/smp.h> header, use the 'max_cpus'
    name for the function parameter name.
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    4c8a4985
cpu.c 79.5 KB