[RFC PATCH 1/2] powerpc/numa: fix cpu_to_node() usage during boot

David Rientjes rientjes at google.com
Wed Jul 15 07:31:20 AEST 2015

On Fri, 10 Jul 2015, Nishanth Aravamudan wrote:

> > After the percpu areas on initialized and cpu_to_node() is correct, it 
> > would be really nice to be able to make numa_cpu_lookup_table[] be 
> > __initdata since it shouldn't be necessary anymore.  That probably has cpu 
> > callbacks that need to be modified to no longer look at 
> > numa_cpu_lookup_table[] or pass the value in, but it would make it much 
> > cleaner.  Then nobody will have to worry about figuring out whether 
> > early_cpu_to_node() or cpu_to_node() is the right one to call.
> When I worked on the original pcpu patches for power, I wanted to do
> this, but got myself confused and never came back to it. Thank you for
> suggesting it and I'll work on it soon.

Great, thanks for taking it on!  I have powerpc machines so I can test 
this and try to help where possible.

More information about the Linuxppc-dev mailing list