Re: [PATCH] NUMA: Early use of cpu_to_node() returns 0 instead of the correct node id

From: Shijie Huang
Date: Fri Jan 19 2024 - 02:42:37 EST



在 2024/1/19 12:42, Yury Norov 写道:
Regardless, I don't think that the approach is correct. As per your
description, some initialization functions erroneously call
cpu_to_node() instead of early_cpu_to_node() which exists specifically
for that case.

I checked the code again.

The sparc, mips and s390 (which support the NUMA) do not support early_cpu_to_node().

So we cannot use early_cpu_to_node() for these functions.


Thanks

Huang Shijie