Commit 74732646 authored by Dave Jones's avatar Dave Jones Committed by 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: default avatarDave Jones <davej@redhat.com>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Acked-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 a616058b
...@@ -5977,13 +5977,15 @@ static void calibrate_migration_costs(const cpumask_t *cpu_map) ...@@ -5977,13 +5977,15 @@ static void calibrate_migration_costs(const cpumask_t *cpu_map)
#endif #endif
); );
if (system_state == SYSTEM_BOOTING) { if (system_state == SYSTEM_BOOTING) {
printk("migration_cost="); if (num_online_cpus() > 1) {
for (distance = 0; distance <= max_distance; distance++) { printk("migration_cost=");
if (distance) for (distance = 0; distance <= max_distance; distance++) {
printk(","); if (distance)
printk("%ld", (long)migration_cost[distance] / 1000); printk(",");
printk("%ld", (long)migration_cost[distance] / 1000);
}
printk("\n");
} }
printk("\n");
} }
j1 = jiffies; j1 = jiffies;
if (migration_debug) if (migration_debug)
......
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