From: Dave Jones If only a single CPU is present, printing this doesn't make much sense. Signed-off-by: Dave Jones Signed-off-by: Andrew Morton --- kernel/sched.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff -puN kernel/sched.c~sched-dont-print-migration-cost-when-only-1-cpu kernel/sched.c --- a/kernel/sched.c~sched-dont-print-migration-cost-when-only-1-cpu +++ a/kernel/sched.c @@ -5977,13 +5977,15 @@ static void calibrate_migration_costs(co #endif ); if (system_state == SYSTEM_BOOTING) { - printk("migration_cost="); - for (distance = 0; distance <= max_distance; distance++) { - if (distance) - printk(","); - printk("%ld", (long)migration_cost[distance] / 1000); + if (num_online_cpus() > 1) { + printk("migration_cost="); + for (distance = 0; distance <= max_distance; distance++) { + if (distance) + printk(","); + printk("%ld", (long)migration_cost[distance] / 1000); + } + printk("\n"); } - printk("\n"); } j1 = jiffies; if (migration_debug) _