# Re: \[PATCH 1/1\] powerpc/smp: Set numa node before updating mask

- From: Nathan Lynch \<hidden\>
- Date: 2021-04-08 20:01:34 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/04/9522000
- Thread: https://ratatoskr.run/linuxppc-dev/2021/04/9521874/t.md

```text
Srikar Dronamraju [ref] writes:
> * Nathan Lynch [ref] [2021-04-07 14:46:24]:
>> I don't know. I guess this question just makes me wonder whether powerpc
>> needs to have the additional lookup table. How is it different from the
>> generic per_cpu numa_node?
>
> lookup table is for early cpu to node i.e when per_cpu variables may not be
> available. This would mean that calling set_numa_node/set_cpu_numa_node from
> map_cpu_to_node() may not always be an option, since map_cpu_to_node() does
> end up getting called very early in the system.

Ah that's right, thanks.
```
