Commit 8595c539f0360477189eef91f6337ba44962f72d
Committed by
Linus Torvalds
1 parent
da0503aae0
Exists in
master
and in
20 other branches
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 <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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
init/calibrate.c
... | ... | @@ -267,7 +267,8 @@ |
267 | 267 | |
268 | 268 | if (per_cpu(cpu_loops_per_jiffy, this_cpu)) { |
269 | 269 | 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) " | |
271 | 272 | "already calibrated this CPU"); |
272 | 273 | } else if (preset_lpj) { |
273 | 274 | lpj = preset_lpj; |