Commit 8dac7706 authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds

[PATCH] sched: fix domain debug for isolcpus

Fix an oops in the domain debug code when isolated CPUs are specified.
Introduced by 5/8 "sched add load balance flag"
Signed-off-by: default avatarNick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 293643f4
...@@ -4344,7 +4344,17 @@ static void sched_domain_debug(void) ...@@ -4344,7 +4344,17 @@ static void sched_domain_debug(void)
printk(KERN_DEBUG); printk(KERN_DEBUG);
for (j = 0; j < level + 1; j++) for (j = 0; j < level + 1; j++)
printk(" "); printk(" ");
printk("domain %d: span %s\n", level, str); printk("domain %d: ", level);
if (!(sd->flags & SD_LOAD_BALANCE)) {
printk("does not balance");
if (sd->parent)
printk(" ERROR !SD_LOAD_BALANCE domain has parent");
printk("\n");
break;
}
printk("span %s\n", str);
if (!cpu_isset(i, sd->span)) if (!cpu_isset(i, sd->span))
printk(KERN_DEBUG "ERROR domain->span does not contain CPU%d\n", i); printk(KERN_DEBUG "ERROR domain->span does not contain CPU%d\n", i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment