Patchwork [tip:sched/urgent] sched: Sched_rt_periodic_timer vs cpu hotplug

login
register
mail settings
Submitter Peter Zijlstra
Date Nov. 16, 2009, 11:18 a.m.
Message ID <tip-047106adcc85e3023da210143a6ab8a55df9e0fc@git.kernel.org>
Download mbox | patch
Permalink /patch/60250/
State New, archived
Headers show

Comments

Patch

diff --git a/kernel/sched.c b/kernel/sched.c
index cea2bea..3c91f11 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7912,6 +7912,8 @@  sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent)
 
 static void free_rootdomain(struct root_domain *rd)
 {
+	synchronize_sched();
+
 	cpupri_cleanup(&rd->cpupri);
 
 	free_cpumask_var(rd->rto_mask);