From b0a97558c4ff738fefcc52c98faa8c417b1747d7 Mon Sep 17 00:00:00 2001 From: Diwakar Tundlam Date: Thu, 8 Mar 2012 14:53:14 -0800 Subject: 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 Reviewed-on: http://git-master/r/88921 Reviewed-by: Satya Popuri Reviewed-by: Aleksandr Frid Reviewed-by: Peter Boonstoppel --- init/calibrate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init/calibrate.c') 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; -- cgit v1.2.3