[PATCH RFC 1/5] mm/numa: move numa emulation APIs into generic files
Ingo Molnar
mingo at kernel.org
Wed Oct 11 23:05:35 PDT 2023
* Rongwei Wang <rongwei.wang at linux.alibaba.com> wrote:
> In order to support NUMA EMU for other
> arch, some functions that used by numa_meminfo
> should be moved out x86 arch. mm/numa.c created
> to place above API.
>
> CONFIG_NUMA_EMU will be handled later.
>
> Signed-off-by: Rongwei Wang <rongwei.wang at linux.alibaba.com>
> ---
> arch/x86/include/asm/numa.h | 3 -
> arch/x86/mm/numa.c | 216 +-------------------------
> arch/x86/mm/numa_internal.h | 14 +-
> include/asm-generic/numa.h | 18 +++
> mm/Makefile | 1 +
> mm/numa.c | 298 ++++++++++++++++++++++++++++++++++++
> 6 files changed, 323 insertions(+), 227 deletions(-)
> create mode 100644 mm/numa.c
No objections to moving the x86 NUMA emulation code to mm/numa.c, as long
as it stays similarly functional:
Acked-by: Ingo Molnar <mingo at kernel.org>
Thanks,
Ingo
More information about the linux-arm-kernel
mailing list