Skip to content

Commit

Permalink
init: check printed flag to skip printing message
Browse files Browse the repository at this point in the history
Otherwise the 'Calibration skipped' message gets printed everytime a CPU
is hotplugged in, cluttering console for systems that frequently hotplug
CPUs.

Signed-off-by: Diwakar Tundlam <[email protected]>
Cc: Phil Carmody <[email protected]>
Cc: Russell King <[email protected]>
Cc: Greg KH <[email protected]>
Cc: Sameer Nanda <[email protected]>
Cc: Peter De Schrijver <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Diwakar Tundlam authored and torvalds committed Mar 23, 2012
1 parent da0503a commit 8595c53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init/calibrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ void __cpuinit calibrate_delay(void)

if (per_cpu(cpu_loops_per_jiffy, this_cpu)) {
lpj = per_cpu(cpu_loops_per_jiffy, this_cpu);
pr_info("Calibrating delay loop (skipped) "
if (!printed)
pr_info("Calibrating delay loop (skipped) "
"already calibrated this CPU");
} else if (preset_lpj) {
lpj = preset_lpj;
Expand Down

0 comments on commit 8595c53

Please sign in to comment.