From 10ebd8556b7990499c896a550e3d416b444211e6 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 02:23:07 +0000 Subject: [PATCH] add led --- kernel/arch/ia64/mm/numa.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/kernel/arch/ia64/mm/numa.c b/kernel/arch/ia64/mm/numa.c index 476c7b4..6cd002e 100644 --- a/kernel/arch/ia64/mm/numa.c +++ b/kernel/arch/ia64/mm/numa.c @@ -15,7 +15,7 @@ #include <linux/mm.h> #include <linux/node.h> #include <linux/init.h> -#include <linux/bootmem.h> +#include <linux/memblock.h> #include <linux/module.h> #include <asm/mmzone.h> #include <asm/numa.h> @@ -35,6 +35,12 @@ * proportional to the memory access latency ratios. */ u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES]; + +int __node_distance(int from, int to) +{ + return slit_distance(from, to); +} +EXPORT_SYMBOL(__node_distance); /* Identify which cnode a physical address resides on */ int @@ -100,7 +106,6 @@ return 0; return nid; } - -EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); +EXPORT_SYMBOL(memory_add_physaddr_to_nid); #endif #endif -- Gitblit v1.6.2