diff options
Diffstat (limited to 'include/asm-x86/topology.h')
-rw-r--r-- | include/asm-x86/topology.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/include/asm-x86/topology.h b/include/asm-x86/topology.h index 81a29eb08ac4..22073268b481 100644 --- a/include/asm-x86/topology.h +++ b/include/asm-x86/topology.h | |||
@@ -88,6 +88,17 @@ static inline int cpu_to_node(int cpu) | |||
88 | #endif | 88 | #endif |
89 | return per_cpu(x86_cpu_to_node_map, cpu); | 89 | return per_cpu(x86_cpu_to_node_map, cpu); |
90 | } | 90 | } |
91 | |||
92 | #ifdef CONFIG_NUMA | ||
93 | |||
94 | /* Returns a pointer to the cpumask of CPUs on Node 'node'. */ | ||
95 | #define node_to_cpumask_ptr(v, node) \ | ||
96 | cpumask_t *v = &(node_to_cpumask_map[node]) | ||
97 | |||
98 | #define node_to_cpumask_ptr_next(v, node) \ | ||
99 | v = &(node_to_cpumask_map[node]) | ||
100 | #endif | ||
101 | |||
91 | #endif /* CONFIG_X86_64 */ | 102 | #endif /* CONFIG_X86_64 */ |
92 | 103 | ||
93 | /* | 104 | /* |
@@ -136,17 +147,13 @@ extern unsigned long node_remap_size[]; | |||
136 | 147 | ||
137 | # define SD_CACHE_NICE_TRIES 2 | 148 | # define SD_CACHE_NICE_TRIES 2 |
138 | # define SD_IDLE_IDX 2 | 149 | # define SD_IDLE_IDX 2 |
139 | # define SD_NEWIDLE_IDX 0 | 150 | # define SD_NEWIDLE_IDX 2 |
140 | # define SD_FORKEXEC_IDX 1 | 151 | # define SD_FORKEXEC_IDX 1 |
141 | 152 | ||
142 | #endif | 153 | #endif |
143 | 154 | ||
144 | /* sched_domains SD_NODE_INIT for NUMAQ machines */ | 155 | /* sched_domains SD_NODE_INIT for NUMAQ machines */ |
145 | #define SD_NODE_INIT (struct sched_domain) { \ | 156 | #define SD_NODE_INIT (struct sched_domain) { \ |
146 | .span = CPU_MASK_NONE, \ | ||
147 | .parent = NULL, \ | ||
148 | .child = NULL, \ | ||
149 | .groups = NULL, \ | ||
150 | .min_interval = 8, \ | 157 | .min_interval = 8, \ |
151 | .max_interval = 32, \ | 158 | .max_interval = 32, \ |
152 | .busy_factor = 32, \ | 159 | .busy_factor = 32, \ |
@@ -164,7 +171,6 @@ extern unsigned long node_remap_size[]; | |||
164 | | SD_WAKE_BALANCE, \ | 171 | | SD_WAKE_BALANCE, \ |
165 | .last_balance = jiffies, \ | 172 | .last_balance = jiffies, \ |
166 | .balance_interval = 1, \ | 173 | .balance_interval = 1, \ |
167 | .nr_balance_failed = 0, \ | ||
168 | } | 174 | } |
169 | 175 | ||
170 | #ifdef CONFIG_X86_64_ACPI_NUMA | 176 | #ifdef CONFIG_X86_64_ACPI_NUMA |
@@ -174,10 +180,10 @@ extern int __node_distance(int, int); | |||
174 | 180 | ||
175 | #else /* CONFIG_NUMA */ | 181 | #else /* CONFIG_NUMA */ |
176 | 182 | ||
177 | #include <asm-generic/topology.h> | ||
178 | |||
179 | #endif | 183 | #endif |
180 | 184 | ||
185 | #include <asm-generic/topology.h> | ||
186 | |||
181 | extern cpumask_t cpu_coregroup_map(int cpu); | 187 | extern cpumask_t cpu_coregroup_map(int cpu); |
182 | 188 | ||
183 | #ifdef ENABLE_TOPO_DEFINES | 189 | #ifdef ENABLE_TOPO_DEFINES |