Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932390Ab3HGHxF (ORCPT ); Wed, 7 Aug 2013 03:53:05 -0400 Received: from newsmtp5.atmel.com ([204.2.163.5]:18435 "EHLO sjogate2.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932073Ab3HGHxE (ORCPT ); Wed, 7 Aug 2013 03:53:04 -0400 From: Bo Shen To: Russell King Cc: Stephen Boyd , John Stultz , Will Deacon , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bo Shen Subject: [RFC PATCH] clock: correct the comparison parameter of MHz Date: Wed, 7 Aug 2013 15:47:40 +0800 Message-Id: <1375861660-32525-1-git-send-email-voice.shen@atmel.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 29 correct the comparison parameter of MHz from 4,000,000 to 1,000,000 Signed-off-by: Bo Shen --- kernel/time/sched_clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index a326f27..62885f7 100644 --- a/kernel/time/sched_clock.c +++ b/kernel/time/sched_clock.c @@ -128,7 +128,7 @@ void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate) clocks_calc_mult_shift(&cd.mult, &cd.shift, rate, NSEC_PER_SEC, 0); r = rate; - if (r >= 4000000) { + if (r >= 1000000) { r /= 1000000; r_unit = 'M'; } else if (r >= 1000) { -- 1.7.9.5 -- 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/