Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161108Ab3FTQoK (ORCPT ); Thu, 20 Jun 2013 12:44:10 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:56795 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161032Ab3FTQoH (ORCPT ); Thu, 20 Jun 2013 12:44:07 -0400 From: Will Deacon To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: nico@fluxnic.net, cov@codeaurora.org, marc.zyngier@arm.com, Will Deacon Subject: [PATCH v2 2/2] init: calibrate: don't print out bogomips value on boot Date: Thu, 20 Jun 2013 17:43:32 +0100 Message-Id: <1371746612-23950-3-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 1.8.2.2 In-Reply-To: <1371746612-23950-1-git-send-email-will.deacon@arm.com> References: <1371746612-23950-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1746 Lines: 50 BogoMIPs is a confusing concept to the ill-informed, so allow architectures to print it only if they find it worthwhile. The delay calibration code should stick to lpj and avoid trying to draw any correlation with BogoMIPs, which may be a fixed value derived from a timer frequency independent of the CPU clock speed. Signed-off-by: Will Deacon --- init/calibrate.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/init/calibrate.c b/init/calibrate.c index fda0a7b..cf48068 100644 --- a/init/calibrate.c +++ b/init/calibrate.c @@ -135,13 +135,13 @@ static unsigned long __cpuinit calibrate_delay_direct(void) if ((measured_times[max] - estimate) < (estimate - measured_times[min])) { printk(KERN_NOTICE "calibrate_delay_direct() dropping " - "min bogoMips estimate %d = %lu\n", + "min delay estimate %d = %lu\n", min, measured_times[min]); measured_times[min] = 0; min = max; } else { printk(KERN_NOTICE "calibrate_delay_direct() dropping " - "max bogoMips estimate %d = %lu\n", + "max delay estimate %d = %lu\n", max, measured_times[max]); measured_times[max] = 0; max = min; @@ -292,9 +292,7 @@ void __cpuinit calibrate_delay(void) } per_cpu(cpu_loops_per_jiffy, this_cpu) = lpj; if (!printed) - pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n", - lpj/(500000/HZ), - (lpj/(5000/HZ)) % 100, lpj); + pr_cont("lpj=%lu\n", lpj); loops_per_jiffy = lpj; printed = true; -- 1.8.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/