Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100189
b: refs/heads/master
c: 099f98c
h: refs/heads/master
i:
  100187: bed7506
v: v3
  • Loading branch information
Gautham R Shenoy authored and Ingo Molnar committed Jun 6, 2008
1 parent 6bbfcb8 commit 57bd57a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e29c98d12b3f02d6ac711c60b4a5f8a46d1cf19b
refs/heads/master: 099f98c8a1f13501a98afbfff4756395a610581c
25 changes: 24 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -6197,6 +6197,28 @@ void __init migration_init(void)

#ifdef CONFIG_SCHED_DEBUG

static inline const char *sd_level_to_string(enum sched_domain_level lvl)
{
switch (lvl) {
case SD_LV_NONE:
return "NONE";
case SD_LV_SIBLING:
return "SIBLING";
case SD_LV_MC:
return "MC";
case SD_LV_CPU:
return "CPU";
case SD_LV_NODE:
return "NODE";
case SD_LV_ALLNODES:
return "ALLNODES";
case SD_LV_MAX:
return "MAX";

}
return "MAX";
}

static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
cpumask_t *groupmask)
{
Expand All @@ -6216,7 +6238,8 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
return -1;
}

printk(KERN_CONT "span %s\n", str);
printk(KERN_CONT "span %s level %s\n",
str, sd_level_to_string(sd->level));

if (!cpu_isset(cpu, sd->span)) {
printk(KERN_ERR "ERROR: domain->span does not contain "
Expand Down

0 comments on commit 57bd57a

Please sign in to comment.