+0
−10
+24
−31
Loading
Sunway inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB73UR -------------------------------- If acpi is disabled and there's no memory on 2nd node, the 2nd node would not be registered and all cpus would be registered to the 1st node. Fix this issue by moving cpu_set_node() inside numa_init() and make it set numa_nodes_parsed. Signed-off-by:Mao Minkai <maominkai@wxiat.com> Reviewed-by:
He Sheng <hesheng@wxiat.com> Signed-off-by:
Gu Zitao <guzitao@wxiat.com>