summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-10-03 10:14:07 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 17:04:06 +0200
commit74732646431a1bb7e23e6b564127a8881cfef900 (patch)
tree9237104dcced775ec6fa59c497d220d4a43b8c34 /kernel/sched.c
parent[PATCH] sched: remove unnecessary sched group allocations (diff)
downloadlinux-74732646431a1bb7e23e6b564127a8881cfef900.tar.xz
linux-74732646431a1bb7e23e6b564127a8881cfef900.zip
[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: Dave Jones <davej@redhat.com> Acked-by: Ingo Molnar <mingo@elte.hu> Acked-by: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c14
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)
#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)