Re: [PATCH 4/5] x86: Add config variables for SMP_MAX

From: Andi Kleen
Date: Mon Jan 28 2008 - 12:06:45 EST



> The problem in kernel/sched.c:isolated_cpu_setup() is an array of
> NR_CPUS integers:
>
> static int __init isolated_cpu_setup(char *str)
> {
> int ints[NR_CPUS], i;
>
> str = get_options(str, ARRAY_SIZE(ints), ints);
>
> Since isolated_cpu_setup() is an __init routine, perhaps we could
> make that ints[] array static __initdata?

That or use alloc_bootmem / free_bootmem

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