提交 74732646 编写于 作者: D Dave Jones 提交者: Linus Torvalds

[PATCH] sched: don't print migration cost when only 1 CPU

If only a single CPU is present, printing this doesn't make much sense.
Signed-off-by: NDave Jones <davej@redhat.com>
Acked-by: NIngo Molnar <mingo@elte.hu>
Acked-by: NNick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 a616058b
......@@ -5977,6 +5977,7 @@ static void calibrate_migration_costs(const cpumask_t *cpu_map)
#endif
);
if (system_state == SYSTEM_BOOTING) {
if (num_online_cpus() > 1) {
printk("migration_cost=");
for (distance = 0; distance <= max_distance; distance++) {
if (distance)
......@@ -5985,6 +5986,7 @@ static void calibrate_migration_costs(const cpumask_t *cpu_map)
}
printk("\n");
}
}
j1 = jiffies;
if (migration_debug)
printk("migration: %ld seconds\n", (j1-j0)/HZ);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册