forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/ia64/mm/numa.c
....@@ -15,7 +15,7 @@
1515 #include <linux/mm.h>
1616 #include <linux/node.h>
1717 #include <linux/init.h>
18
-#include <linux/bootmem.h>
18
+#include <linux/memblock.h>
1919 #include <linux/module.h>
2020 #include <asm/mmzone.h>
2121 #include <asm/numa.h>
....@@ -35,6 +35,12 @@
3535 * proportional to the memory access latency ratios.
3636 */
3737 u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES];
38
+
39
+int __node_distance(int from, int to)
40
+{
41
+ return slit_distance(from, to);
42
+}
43
+EXPORT_SYMBOL(__node_distance);
3844
3945 /* Identify which cnode a physical address resides on */
4046 int
....@@ -100,7 +106,6 @@
100106 return 0;
101107 return nid;
102108 }
103
-
104
-EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
109
+EXPORT_SYMBOL(memory_add_physaddr_to_nid);
105110 #endif
106111 #endif