| .. | .. |
|---|
| 15 | 15 | #include <linux/mm.h> |
|---|
| 16 | 16 | #include <linux/node.h> |
|---|
| 17 | 17 | #include <linux/init.h> |
|---|
| 18 | | -#include <linux/bootmem.h> |
|---|
| 18 | +#include <linux/memblock.h> |
|---|
| 19 | 19 | #include <linux/module.h> |
|---|
| 20 | 20 | #include <asm/mmzone.h> |
|---|
| 21 | 21 | #include <asm/numa.h> |
|---|
| .. | .. |
|---|
| 35 | 35 | * proportional to the memory access latency ratios. |
|---|
| 36 | 36 | */ |
|---|
| 37 | 37 | 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); |
|---|
| 38 | 44 | |
|---|
| 39 | 45 | /* Identify which cnode a physical address resides on */ |
|---|
| 40 | 46 | int |
|---|
| .. | .. |
|---|
| 100 | 106 | return 0; |
|---|
| 101 | 107 | return nid; |
|---|
| 102 | 108 | } |
|---|
| 103 | | - |
|---|
| 104 | | -EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); |
|---|
| 109 | +EXPORT_SYMBOL(memory_add_physaddr_to_nid); |
|---|
| 105 | 110 | #endif |
|---|
| 106 | 111 | #endif |
|---|