[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1DD7BFEDD3147247B1355BEFEFE4665237994F30F4@HQMAIL04.nvidia.com>
Date: Thu, 8 Mar 2012 15:44:16 -0800
From: Diwakar Tundlam <dtundlam@...dia.com>
To: 'Andrew Morton' <akpm@...ux-foundation.org>,
'Phil Carmody' <ext-phil.2.carmody@...ia.com>,
'Russell King' <rmk+kernel@....linux.org.uk>,
'Greg Kroah-Hartman' <gregkh@...e.de>,
'Sameer Nanda' <snanda@...omium.org>
CC: Peter De Schrijver <pdeschrijver@...dia.com>,
"'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>,
'Linus Torvalds' <torvalds@...ux-foundation.org>
Subject: [PATCH] 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@...dia.com>
---
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/init/calibrate.c b/init/calibrate.c
index 5f117ca..fda0a7b 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists