Skip to content

Commit 8595c53

Browse files
Diwakar Tundlamtorvalds
authored andcommitted
init: check printed flag to skip printing message
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]>
1 parent da0503a commit 8595c53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init/calibrate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ void __cpuinit calibrate_delay(void)
267267

268268
if (per_cpu(cpu_loops_per_jiffy, this_cpu)) {
269269
lpj = per_cpu(cpu_loops_per_jiffy, this_cpu);
270-
pr_info("Calibrating delay loop (skipped) "
270+
if (!printed)
271+
pr_info("Calibrating delay loop (skipped) "
271272
"already calibrated this CPU");
272273
} else if (preset_lpj) {
273274
lpj = preset_lpj;

0 commit comments

Comments
 (0)