blob: 86860f2796625b50d60b7b7f4ccf9eda8ab24e8d [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Tejun Heob8ef9172011-02-22 11:10:08 +01002#ifndef __X86_MM_NUMA_INTERNAL_H
3#define __X86_MM_NUMA_INTERNAL_H
4
5#include <linux/types.h>
6#include <asm/numa.h>
7
8struct numa_memblk {
9 u64 start;
10 u64 end;
11 int nid;
12};
13
14struct numa_meminfo {
15 int nr_blks;
16 struct numa_memblk blk[NR_NODE_MEMBLKS];
17};
18
19void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi);
20int __init numa_cleanup_meminfo(struct numa_meminfo *mi);
21void __init numa_reset_distance(void);
22
Tejun Heoa4106ea2011-05-02 14:18:53 +020023void __init x86_numa_init(void);
24
Tejun Heob8ef9172011-02-22 11:10:08 +010025#ifdef CONFIG_NUMA_EMU
26void __init numa_emulation(struct numa_meminfo *numa_meminfo,
27 int numa_dist_cnt);
28#else
29static inline void numa_emulation(struct numa_meminfo *numa_meminfo,
30 int numa_dist_cnt)
31{ }
32#endif
33
34#endif /* __X86_MM_NUMA_INTERNAL_H */