mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
sched: break out if printing a warning in sched_domain_debug()
checkpatch.pl and Andy Whitcroft noticed the following bug: we did not break out after printing an error. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
3e9830dcab
commit
26797a34a2
1 changed files with 3 additions and 0 deletions
|
@ -5534,16 +5534,19 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
|
|||
printk("\n");
|
||||
printk(KERN_ERR "ERROR: domain->cpu_power not "
|
||||
"set\n");
|
||||
break;
|
||||
}
|
||||
|
||||
if (!cpus_weight(group->cpumask)) {
|
||||
printk("\n");
|
||||
printk(KERN_ERR "ERROR: empty group\n");
|
||||
break;
|
||||
}
|
||||
|
||||
if (cpus_intersects(groupmask, group->cpumask)) {
|
||||
printk("\n");
|
||||
printk(KERN_ERR "ERROR: repeated CPUs\n");
|
||||
break;
|
||||
}
|
||||
|
||||
cpus_or(groupmask, groupmask, group->cpumask);
|
||||
|
|
Loading…
Reference in a new issue