Message ID | 20170905113605.24191-1-romain.izard.pro@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 201CC6038C for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 5 Sep 2017 11:36:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12331200E9 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 5 Sep 2017 11:36:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06CD528948; Tue, 5 Sep 2017 11:36:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9A8AD200E9 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 5 Sep 2017 11:36:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=tzkHUeIo1v3ByqrBELD5E4mZImEyILY0PlSNG4IC8UY=; b=t3K aEEH4xkmIopzjN1dvjBL0oGyGttujR7f7ZWzEVucxhoHN/v2vePf2ZvJjaeGDOs+5jKoLcI1j+IWg YntskpQoIMdZYOJELvxFOKSQT3PknfU+VDQSmXzxCw/IggSUKMq2iZllK4Swcbj/p6V4cMXH2d3qG ketfIKzqtDMkwq7Czk9vi2GpQZQEFvDE1FJs3Q0zt1kxw9Zvna2KWjAK7sykaSQIuGj0GfRAXwG1W Ur1NjpYNVCQp1ycTaQRRHHc98dD9wvN9Hlr7QDxsAVPXdUmpvACVApJmlyLQcRrbG5AGxSPTt2OdG NOTFCH5AorZpbHvA1o1x5GQ46AeovfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dpC9r-00064U-IP; Tue, 05 Sep 2017 11:36:43 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dpC9o-00061n-3c for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2017 11:36:41 +0000 Received: by mail-wr0-x243.google.com with SMTP id b9so1589234wra.0 for <linux-arm-kernel@lists.infradead.org>; Tue, 05 Sep 2017 04:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UyUJnFqLNaWCk8US4YJVosKAbgRKYBdWpcQ10QKj/+k=; b=FZKwYj3fgEg5/H1RWGVL+dqq6yDITG8xPDOBz6jfcErH0dAeFTFsDU7HfS9S0hKBQi CUOYKj7IN2b7ENS9pOmiIPsCUAx++1Vv+jJztAGuFlS1/XXix/v1dFAvJvj+ZDdzFo9J u0+f9B5c1z3YrmNvGQ8sMrdaRu8BMtkd9Vyz7kdFeu5SWcsTyqF16TR6p7i+uT0aEvar 1prulcPlpkavw63poCqgtfVLZ0onEC9zkyCS83ciBsvq53Lk5UB8bfdpnyDgxYKzkaxu flcmr7axKwXGY9mVM/c5NFd4pCmYUfnHwBCy8Yl2R0N6wBjD6Iqr6DUtqv3WfrDl2Tqm Y+zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UyUJnFqLNaWCk8US4YJVosKAbgRKYBdWpcQ10QKj/+k=; b=bfEVUUdz2iLH+6d7ajDMwomWw55vbCzJMo0wEjzyLRevN95LmJ615QQR7lOybn80UZ GHqpOv6kqZjdbvrOMm5+UXUX+sesr0+aIFuCFnRY5DCNRYjemwZOiI7yGh1QCxlcok2N NMyTc6lRfmcDY01UQbV4As/5GyXwi2hubPI6WQuyluCRve+lRgpn7SrqSSBaci8dmn/e x3udo99WgKfIyxQLmHaUPD0jqM6fnft7QFDVCGIC/yNq70Ie0YBdhBbZzvIfaiunSbkx 4S20uyV80feQQMR8ec+LUV8dDQMo/yWQe62lt5XiKJb0chEuXma7TZH3ru/suLy+vj1y xKgw== X-Gm-Message-State: AHPjjUjyVGYu7BcYKoZaCR0qbXlUr40ygaMqVvccic40B+KCINIbPA7X tSnGrEMCj5IVIA== X-Google-Smtp-Source: ADKCNb74E4U6vnRD/pV5Y6FTusRx9QwGqa/8XWR4r4QefkAHX9L54mLuu/LP+jABzwoplMr6UyO4wg== X-Received: by 10.223.154.120 with SMTP id z111mr2225214wrb.260.1504611378011; Tue, 05 Sep 2017 04:36:18 -0700 (PDT) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id r187sm349199wma.41.2017.09.05.04.36.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 04:36:17 -0700 (PDT) From: Romain Izard <romain.izard.pro@gmail.com> To: Nicolas Ferre <nicolas.ferre@microchip.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de> Subject: [PATCH] clocksource: tcb_clksrc: Fix clock speed message Date: Tue, 5 Sep 2017 13:36:05 +0200 Message-Id: <20170905113605.24191-1-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170905_043640_312574_A6C42CB3 X-CRM114-Status: GOOD ( 11.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Romain Izard <romain.izard.pro@gmail.com>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clocksource/tcb_clksrc.c b/drivers/clocksource/tcb_clksrc.c index 59e8aee0ec16..8fb4bea14f16 100644 --- a/drivers/clocksource/tcb_clksrc.c +++ b/drivers/clocksource/tcb_clksrc.c @@ -383,7 +383,7 @@ static int __init tcb_clksrc_init(void) printk(bootinfo, clksrc.name, CONFIG_ATMEL_TCB_CLKSRC_BLOCK, divided_rate / 1000000, - ((divided_rate + 500000) % 1000000) / 1000); + ((divided_rate % 1000000) + 500) / 1000); if (tc->tcb_config && tc->tcb_config->counter_width == 32) { /* use apropriate function to read 32 bit counter */
The clock speed displayed at boot in an information message was 500 kHz too high compared to its real value. As the value is not used anywhere, there is no functional impact. Fix the rounding formula to display the correct value. Signed-off-by: Romain Izard <romain.izard.pro@gmail.com> --- drivers/clocksource/tcb_clksrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)