summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorDiwakar Tundlam <dtundlam@nvidia.com>2012-03-08 14:53:14 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2012-03-23 21:39:10 -0700
commit279091cdb123b8d19815969e46d9290e6cde1e6d (patch)
tree0bde6bc9c2f38a5271c6f0313f693ccd95fc64ee /init
parent689b403ebb956e3ebd3b9b45fcd410b19dcc6b03 (diff)
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. Change-Id: Ie0b4dc92a11d7518cfe6eb2100d8edadca4efb3e Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/88921 Reviewed-by: Satya Popuri <spopuri@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Rebase-Id: R62beffb9dd8a109004fb2595db15e7415fe7d631
Diffstat (limited to 'init')
-rw-r--r--init/calibrate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/calibrate.c b/init/calibrate.c
index 5f117ca9e069..fda0a7b0f06c 100644
--- a/init/calibrate.c
+++ b/init/calibrate.c
@@ -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;