From: Diwakar Tundlam Date: Fri, 23 Mar 2012 22:02:28 +0000 (-0700) Subject: init: check printed flag to skip printing message X-Git-Tag: MMI-PSA29.97-13-9~17191^2~49 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8595c539f0360477189eef91f6337ba44962f72d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Cc: Phil Carmody Cc: Russell King Cc: Greg KH Cc: Sameer Nanda Cc: Peter De Schrijver Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;