diff options
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index aaca0e743776..16126efd14ed 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h | |||
@@ -1262,16 +1262,18 @@ enum numa_topology_type { | |||
1262 | extern enum numa_topology_type sched_numa_topology_type; | 1262 | extern enum numa_topology_type sched_numa_topology_type; |
1263 | extern int sched_max_numa_distance; | 1263 | extern int sched_max_numa_distance; |
1264 | extern bool find_numa_distance(int distance); | 1264 | extern bool find_numa_distance(int distance); |
1265 | #endif | ||
1266 | |||
1267 | #ifdef CONFIG_NUMA | ||
1268 | extern void sched_init_numa(void); | 1265 | extern void sched_init_numa(void); |
1269 | extern void sched_domains_numa_masks_set(unsigned int cpu); | 1266 | extern void sched_domains_numa_masks_set(unsigned int cpu); |
1270 | extern void sched_domains_numa_masks_clear(unsigned int cpu); | 1267 | extern void sched_domains_numa_masks_clear(unsigned int cpu); |
1268 | extern int sched_numa_find_closest(const struct cpumask *cpus, int cpu); | ||
1271 | #else | 1269 | #else |
1272 | static inline void sched_init_numa(void) { } | 1270 | static inline void sched_init_numa(void) { } |
1273 | static inline void sched_domains_numa_masks_set(unsigned int cpu) { } | 1271 | static inline void sched_domains_numa_masks_set(unsigned int cpu) { } |
1274 | static inline void sched_domains_numa_masks_clear(unsigned int cpu) { } | 1272 | static inline void sched_domains_numa_masks_clear(unsigned int cpu) { } |
1273 | static inline int sched_numa_find_closest(const struct cpumask *cpus, int cpu) | ||
1274 | { | ||
1275 | return nr_cpu_ids; | ||
1276 | } | ||
1275 | #endif | 1277 | #endif |
1276 | 1278 | ||
1277 | #ifdef CONFIG_NUMA_BALANCING | 1279 | #ifdef CONFIG_NUMA_BALANCING |