Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8595c539 authored by Diwakar Tundlam's avatar Diwakar Tundlam Committed by Linus Torvalds
Browse files

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: default avatarDiwakar Tundlam <dtundlam@nvidia.com>
Cc: Phil Carmody <ext-phil.2.carmody@nokia.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Greg KH <greg@kroah.com>
Cc: Sameer Nanda <snanda@chromium.org>
Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent da0503aa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -267,6 +267,7 @@ void __cpuinit calibrate_delay(void)

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