aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 8ae541b2f16..2cc478658fd 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7220,11 +7220,8 @@ int sched_domain_level_max;
7220 7220
7221static int __init setup_relax_domain_level(char *str) 7221static int __init setup_relax_domain_level(char *str)
7222{ 7222{
7223 unsigned long val; 7223 if (kstrtoint(str, 0, &default_relax_domain_level))
7224 7224 pr_warn("Unable to set relax_domain_level\n");
7225 val = simple_strtoul(str, NULL, 0);
7226 if (val < sched_domain_level_max)
7227 default_relax_domain_level = val;
7228 7225
7229 return 1; 7226 return 1;
7230} 7227}
@@ -7417,7 +7414,6 @@ struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl,
7417 if (!sd) 7414 if (!sd)
7418 return child; 7415 return child;
7419 7416
7420 set_domain_attribute(sd, attr);
7421 cpumask_and(sched_domain_span(sd), cpu_map, tl->mask(cpu)); 7417 cpumask_and(sched_domain_span(sd), cpu_map, tl->mask(cpu));
7422 if (child) { 7418 if (child) {
7423 sd->level = child->level + 1; 7419 sd->level = child->level + 1;
@@ -7425,6 +7421,7 @@ struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl,
7425 child->parent = sd; 7421 child->parent = sd;
7426 } 7422 }
7427 sd->child = child; 7423 sd->child = child;
7424 set_domain_attribute(sd, attr);
7428 7425
7429 return sd; 7426 return sd;
7430} 7427}