[PATCH 06/14] sched/topology,debug: Verify the first group matches the child domain
From: Peter Zijlstra
Date: Fri Apr 28 2017 - 09:35:11 EST
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
---
kernel/sched/topology.c | 6 ++++++
1 file changed, 6 insertions(+)
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -93,6 +93,12 @@ static int sched_domain_debug_one(struct
group->sgc->capacity);
}
+ if (group == sd->groups && sd->child &&
+ !cpumask_equal(sched_domain_span(sd->child),
+ sched_group_cpus(group))) {
+ printk(KERN_ERR "ERROR: domain->groups does not match domain->child\n");
+ }
+
group = group->next;
if (group != sd->groups)