diff options
author | Rik van Riel <riel@redhat.com> | 2014-10-17 03:29:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-10-28 05:47:47 -0400 |
commit | 9942f79baaaf111d63ebf0862a819278d84fccc4 (patch) | |
tree | e84cd77db609abff116f09911eba9be92610eacd /kernel/sched/core.c | |
parent | f3a7e1a9c464a32ee186ab91388313c82e7ce018 (diff) |
sched/numa: Export info needed for NUMA balancing on complex topologies
Export some information that is necessary to do placement of
tasks on systems with multi-level NUMA topologies.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: mgorman@suse.de
Cc: chegu_vinod@hp.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1413530994-9732-2-git-send-email-riel@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 240157c13ddc..4007595f87e4 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -6129,6 +6129,7 @@ static void claim_allocations(int cpu, struct sched_domain *sd) | |||
6129 | #ifdef CONFIG_NUMA | 6129 | #ifdef CONFIG_NUMA |
6130 | static int sched_domains_numa_levels; | 6130 | static int sched_domains_numa_levels; |
6131 | static int *sched_domains_numa_distance; | 6131 | static int *sched_domains_numa_distance; |
6132 | int sched_max_numa_distance; | ||
6132 | static struct cpumask ***sched_domains_numa_masks; | 6133 | static struct cpumask ***sched_domains_numa_masks; |
6133 | static int sched_domains_curr_level; | 6134 | static int sched_domains_curr_level; |
6134 | #endif | 6135 | #endif |
@@ -6300,7 +6301,7 @@ static void sched_numa_warn(const char *str) | |||
6300 | printk(KERN_WARNING "\n"); | 6301 | printk(KERN_WARNING "\n"); |
6301 | } | 6302 | } |
6302 | 6303 | ||
6303 | static bool find_numa_distance(int distance) | 6304 | bool find_numa_distance(int distance) |
6304 | { | 6305 | { |
6305 | int i; | 6306 | int i; |
6306 | 6307 | ||
@@ -6447,6 +6448,7 @@ static void sched_init_numa(void) | |||
6447 | sched_domain_topology = tl; | 6448 | sched_domain_topology = tl; |
6448 | 6449 | ||
6449 | sched_domains_numa_levels = level; | 6450 | sched_domains_numa_levels = level; |
6451 | sched_max_numa_distance = sched_domains_numa_distance[level - 1]; | ||
6450 | } | 6452 | } |
6451 | 6453 | ||
6452 | static void sched_domains_numa_masks_set(int cpu) | 6454 | static void sched_domains_numa_masks_set(int cpu) |