Re: [PATCH 3/6] x86/numa: define numa_init_array() conditional on CONFIG_NUMA

2019-02-25 Thread Pingfan Liu
On Mon, Feb 25, 2019 at 11:24 PM Dave Hansen wrote: > > On 2/24/19 4:34 AM, Pingfan Liu wrote: > > +#ifdef CONFIG_NUMA > > /* > > * There are unfortunately some poorly designed mainboards around that > > * only connect memory to a single CPU. This breaks the 1:1 cpu->node > > @@ -618,6

Re: [PATCH 3/6] x86/numa: define numa_init_array() conditional on CONFIG_NUMA

2019-02-25 Thread Dave Hansen
On 2/24/19 4:34 AM, Pingfan Liu wrote: > +#ifdef CONFIG_NUMA > /* > * There are unfortunately some poorly designed mainboards around that > * only connect memory to a single CPU. This breaks the 1:1 cpu->node > @@ -618,6 +619,9 @@ static void __init numa_init_array(void) > rr =

[PATCH 3/6] x86/numa: define numa_init_array() conditional on CONFIG_NUMA

2019-02-24 Thread Pingfan Liu
For non-NUMA, it turns out that numa_init_array() has no operations. Make separated definition for non-NUMA and NUMA, so later they can be combined into their counterpart init_cpu_to_node(). Signed-off-by: Pingfan Liu CC: Thomas Gleixner CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter