diff options
author | Diwakar Tundlam <dtundlam@nvidia.com> | 2012-03-08 14:53:14 -0800 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-03-09 11:48:49 -0800 |
commit | b0a97558c4ff738fefcc52c98faa8c417b1747d7 (patch) | |
tree | c1f21bce8655ce8f860a2072da0e40e648739269 /init | |
parent | 53efc506af60072bd71ff2687c9aa7e9ffbfcc2f (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>
Diffstat (limited to 'init')
-rw-r--r-- | init/calibrate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/calibrate.c b/init/calibrate.c index 24df7976816c..6816bf2fced1 100644 --- a/init/calibrate.c +++ b/init/calibrate.c @@ -254,7 +254,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; |