mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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: Chuck Ebbert <76306.1226@compuserve.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
62cfe7efc4
commit
bd576c9523
1 changed files with 8 additions and 6 deletions
|
@ -5551,6 +5551,7 @@ static void calibrate_migration_costs(const cpumask_t *cpu_map)
|
||||||
-1
|
-1
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
if (system_state == SYSTEM_BOOTING) {
|
||||||
printk("migration_cost=");
|
printk("migration_cost=");
|
||||||
for (distance = 0; distance <= max_distance; distance++) {
|
for (distance = 0; distance <= max_distance; distance++) {
|
||||||
if (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("%ld", (long)migration_cost[distance] / 1000);
|
||||||
}
|
}
|
||||||
printk("\n");
|
printk("\n");
|
||||||
|
}
|
||||||
j1 = jiffies;
|
j1 = jiffies;
|
||||||
if (migration_debug)
|
if (migration_debug)
|
||||||
printk("migration: %ld seconds\n", (j1-j0)/HZ);
|
printk("migration: %ld seconds\n", (j1-j0)/HZ);
|
||||||
|
|
Loading…
Reference in a new issue