diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index e93c75ffdc88..ee4211bd40c5 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6022,7 +6022,7 @@ static int build_sched_domains(const cpumask_t *cpu_map) | |||
6022 | domainspan = sched_domain_node_span(i); | 6022 | domainspan = sched_domain_node_span(i); |
6023 | cpus_and(domainspan, domainspan, *cpu_map); | 6023 | cpus_and(domainspan, domainspan, *cpu_map); |
6024 | 6024 | ||
6025 | sg = kmalloc(sizeof(struct sched_group), GFP_KERNEL); | 6025 | sg = kmalloc_node(sizeof(struct sched_group), GFP_KERNEL, i); |
6026 | if (!sg) { | 6026 | if (!sg) { |
6027 | printk(KERN_WARNING "Can not alloc domain group for " | 6027 | printk(KERN_WARNING "Can not alloc domain group for " |
6028 | "node %d\n", i); | 6028 | "node %d\n", i); |
@@ -6055,7 +6055,8 @@ static int build_sched_domains(const cpumask_t *cpu_map) | |||
6055 | if (cpus_empty(tmp)) | 6055 | if (cpus_empty(tmp)) |
6056 | continue; | 6056 | continue; |
6057 | 6057 | ||
6058 | sg = kmalloc(sizeof(struct sched_group), GFP_KERNEL); | 6058 | sg = kmalloc_node(sizeof(struct sched_group), |
6059 | GFP_KERNEL, i); | ||
6059 | if (!sg) { | 6060 | if (!sg) { |
6060 | printk(KERN_WARNING | 6061 | printk(KERN_WARNING |
6061 | "Can not alloc domain group for node %d\n", j); | 6062 | "Can not alloc domain group for node %d\n", j); |