.. | .. |
---|
3 | 3 | #define _ASM_X86_NUMA_H |
---|
4 | 4 | |
---|
5 | 5 | #include <linux/nodemask.h> |
---|
| 6 | +#include <linux/errno.h> |
---|
6 | 7 | |
---|
7 | 8 | #include <asm/topology.h> |
---|
8 | 9 | #include <asm/apicdef.h> |
---|
.. | .. |
---|
62 | 63 | extern void __init init_cpu_to_node(void); |
---|
63 | 64 | extern void numa_add_cpu(int cpu); |
---|
64 | 65 | extern void numa_remove_cpu(int cpu); |
---|
| 66 | +extern void init_gi_nodes(void); |
---|
65 | 67 | #else /* CONFIG_NUMA */ |
---|
66 | 68 | static inline void numa_set_node(int cpu, int node) { } |
---|
67 | 69 | static inline void numa_clear_node(int cpu) { } |
---|
68 | 70 | static inline void init_cpu_to_node(void) { } |
---|
69 | 71 | static inline void numa_add_cpu(int cpu) { } |
---|
70 | 72 | static inline void numa_remove_cpu(int cpu) { } |
---|
| 73 | +static inline void init_gi_nodes(void) { } |
---|
71 | 74 | #endif /* CONFIG_NUMA */ |
---|
72 | 75 | |
---|
73 | 76 | #ifdef CONFIG_DEBUG_PER_CPU_MAPS |
---|
.. | .. |
---|
77 | 80 | #ifdef CONFIG_NUMA_EMU |
---|
78 | 81 | #define FAKE_NODE_MIN_SIZE ((u64)32 << 20) |
---|
79 | 82 | #define FAKE_NODE_MIN_HASH_MASK (~(FAKE_NODE_MIN_SIZE - 1UL)) |
---|
80 | | -void numa_emu_cmdline(char *); |
---|
| 83 | +int numa_emu_cmdline(char *str); |
---|
| 84 | +#else /* CONFIG_NUMA_EMU */ |
---|
| 85 | +static inline int numa_emu_cmdline(char *str) |
---|
| 86 | +{ |
---|
| 87 | + return -EINVAL; |
---|
| 88 | +} |
---|
81 | 89 | #endif /* CONFIG_NUMA_EMU */ |
---|
82 | 90 | |
---|
83 | 91 | #endif /* _ASM_X86_NUMA_H */ |
---|