mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Trivial sched: Pass domain_attr to build_sched_domains()
@ 2012-05-23  6:41 Kamalesh Babulal
  2012-05-23  7:48 ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: Kamalesh Babulal @ 2012-05-23  6:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo, peterz

sched: Pass domain_attr to build_sched_domains()

build_sched_domains() is called from init_sched_domains()
by explicitly passing NULL as second argument, which is
of type sched_domain_attr. This patch calls build_sched_domains()
with dattr_cur instead of NULL, as dattr_cur is also NULL.

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
---
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 22a19ae..32ccf13 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6735,7 +6735,7 @@ static int init_sched_domains(const struct cpumask *cpu_map)
 		doms_cur = &fallback_doms;
 	cpumask_andnot(doms_cur[0], cpu_map, cpu_isolated_map);
 	dattr_cur = NULL;
-	err = build_sched_domains(doms_cur[0], NULL);
+	err = build_sched_domains(doms_cur[0], dattr_cur);
 	register_sched_domain_sysctl();

 	return err;


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-30 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-23  6:41 [PATCH] Trivial sched: Pass domain_attr to build_sched_domains() Kamalesh Babulal
2012-05-23  7:48 ` Peter Zijlstra
2012-05-23  9:14   ` Kamalesh Babulal
2012-05-30 13:43     ` [tip:sched/urgent] sched: Remove NULL assignment of dattr_cur tip-bot for Kamalesh Babulal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome