diff options
-rw-r--r-- | kernel/sched.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6b956bd9b49a..6d7bf55ec33d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -5977,13 +5977,15 @@ static void calibrate_migration_costs(const cpumask_t *cpu_map) | |||
5977 | #endif | 5977 | #endif |
5978 | ); | 5978 | ); |
5979 | if (system_state == SYSTEM_BOOTING) { | 5979 | if (system_state == SYSTEM_BOOTING) { |
5980 | printk("migration_cost="); | 5980 | if (num_online_cpus() > 1) { |
5981 | for (distance = 0; distance <= max_distance; distance++) { | 5981 | printk("migration_cost="); |
5982 | if (distance) | 5982 | for (distance = 0; distance <= max_distance; distance++) { |
5983 | printk(","); | 5983 | if (distance) |
5984 | printk("%ld", (long)migration_cost[distance] / 1000); | 5984 | printk(","); |
5985 | printk("%ld", (long)migration_cost[distance] / 1000); | ||
5986 | } | ||
5987 | printk("\n"); | ||
5985 | } | 5988 | } |
5986 | printk("\n"); | ||
5987 | } | 5989 | } |
5988 | j1 = jiffies; | 5990 | j1 = jiffies; |
5989 | if (migration_debug) | 5991 | if (migration_debug) |