Commit bd576c95 authored by Chuck Ebbert's avatar Chuck Ebbert Committed by Linus Torvalds

[PATCH] sched: only print migration_cost once per boot

migration_cost prints after every CPU hotplug event.  Make it print only
once at boot.
Signed-off-by: default avatarChuck Ebbert <76306.1226@compuserve.com>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 62cfe7ef
......@@ -5551,6 +5551,7 @@ static void calibrate_migration_costs(const cpumask_t *cpu_map)
-1
#endif
);
if (system_state == SYSTEM_BOOTING) {
printk("migration_cost=");
for (distance = 0; distance <= max_distance; distance++) {
if (distance)
......@@ -5558,6 +5559,7 @@ static void calibrate_migration_costs(const cpumask_t *cpu_map)
printk("%ld", (long)migration_cost[distance] / 1000);
}
printk("\n");
}
j1 = jiffies;
if (migration_debug)
printk("migration: %ld seconds\n", (j1-j0)/HZ);
......
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