[PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V3

2008-01-16 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- V1->V2: - Removed extraneous casts - Fix !NUMA builds with '#ifdef

[PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V3

2008-01-16 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Signed-off-by: Mike Travis [EMAIL PROTECTED] Reviewed-by: Christoph Lameter [EMAIL PROTECTED] --- V1-V2: - Removed extraneous casts - Fix !NUMA builds with '#ifdef

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V2

2008-01-15 Thread Mike Travis
Andi Kleen wrote: > [EMAIL PROTECTED] writes: >> + >> /* Returns the number of the node containing CPU 'cpu' */ >> static inline int cpu_to_node(int cpu) >> { >> -return cpu_to_node_map[cpu]; >> +u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr; >> + >> +if (cpu_to_node_map) >>

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V2

2008-01-15 Thread Andi Kleen
[EMAIL PROTECTED] writes: > + > /* Returns the number of the node containing CPU 'cpu' */ > static inline int cpu_to_node(int cpu) > { > - return cpu_to_node_map[cpu]; > + u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr; > + > + if (cpu_to_node_map) > + return

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V2

2008-01-15 Thread Andi Kleen
[EMAIL PROTECTED] writes: + /* Returns the number of the node containing CPU 'cpu' */ static inline int cpu_to_node(int cpu) { - return cpu_to_node_map[cpu]; + u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr; + + if (cpu_to_node_map) + return

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V2

2008-01-15 Thread Mike Travis
Andi Kleen wrote: [EMAIL PROTECTED] writes: + /* Returns the number of the node containing CPU 'cpu' */ static inline int cpu_to_node(int cpu) { -return cpu_to_node_map[cpu]; +u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr; + +if (cpu_to_node_map) +return

[PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V2

2008-01-14 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- V1->V2: - Removed extraneous casts - Fix !NUMA builds with '#ifdef

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64

2008-01-14 Thread Jan Engelhardt
On Jan 13 2008 10:35, [EMAIL PROTECTED] wrote: >--- a/arch/x86/kernel/setup_64.c >+++ b/arch/x86/kernel/setup_64.c >@@ -372,8 +373,9 @@ void __init setup_arch(char **cmdline_p) > io_delay_init(); > > #ifdef CONFIG_SMP >- /* setup to use the static apicid table during kernel startup */

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64

2008-01-14 Thread Mike Travis
Ingo Molnar wrote: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Change the following static arrays sized by NR_CPUS to >> per_cpu data variables: >> >> char cpu_to_node_map[NR_CPUS]; > > x86.git randconfig testing found the !NUMA build bugs below. > > Ingo Thanks! I'll add

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64

2008-01-14 Thread Ingo Molnar
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Change the following static arrays sized by NR_CPUS to > per_cpu data variables: > > char cpu_to_node_map[NR_CPUS]; x86.git randconfig testing found the !NUMA build bugs below. Ingo ---> ---

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64

2008-01-14 Thread Mike Travis
Ingo Molnar wrote: * [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; x86.git randconfig testing found the !NUMA build bugs below. Ingo Thanks! I'll add this in. Mike

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64

2008-01-14 Thread Jan Engelhardt
On Jan 13 2008 10:35, [EMAIL PROTECTED] wrote: --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c @@ -372,8 +373,9 @@ void __init setup_arch(char **cmdline_p) io_delay_init(); #ifdef CONFIG_SMP - /* setup to use the static apicid table during kernel startup */ +

[PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V2

2008-01-14 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Signed-off-by: Mike Travis [EMAIL PROTECTED] Reviewed-by: Christoph Lameter [EMAIL PROTECTED] --- V1-V2: - Removed extraneous casts - Fix !NUMA builds with '#ifdef

[PATCH 08/10] x86: Change NR_CPUS arrays in numa_64

2008-01-13 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Signed-off-by: Mike Travis <[EMAIL PROTECTED]> Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]> --- arch/x86/kernel/setup_64.c |4 +++- arch/x86/kernel/smpboot_64.c |

[PATCH 08/10] x86: Change NR_CPUS arrays in numa_64

2008-01-13 Thread travis
Change the following static arrays sized by NR_CPUS to per_cpu data variables: char cpu_to_node_map[NR_CPUS]; Signed-off-by: Mike Travis [EMAIL PROTECTED] Reviewed-by: Christoph Lameter [EMAIL PROTECTED] --- arch/x86/kernel/setup_64.c |4 +++- arch/x86/kernel/smpboot_64.c |6