arm64/numa: remove the limitation that cpu0 must bind to node0
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 1 Sep 2016 06:55:04 +0000 (14:55 +0800)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Sep 2016 13:59:09 +0000 (14:59 +0100)
commit7ba5f605f3a0d9495aad539eeb8346d726dfc183
tree2b237c38880de2d62b37f21a3e2243476a0c4423
parentdf7ffa34cc0c06bfa7206732df78725ff34633ee
arm64/numa: remove the limitation that cpu0 must bind to node0

1. Remove the old binding code.
2. Read the nid of cpu0 from dts.
3. Fallback the nid of cpu0 to 0 when numa=off is set in bootargs.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/smp.c
arch/arm64/mm/numa.c