linux-mips
[Top] [All Lists]

[PATCH 1/3] bcm63xx: fix printed CPU frequency

To: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, Maxime Bizon <mbizon@freebox.fr>
Subject: [PATCH 1/3] bcm63xx: fix printed CPU frequency
From: Florian Fainelli <florian@openwrt.org>
Date: Mon, 1 Jun 2009 20:17:04 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:content-type :content-transfer-encoding:content-disposition:message-id; bh=ID63Bxg0Yk7e/DX285HpTAImN6lYsUpQP4kfALEv6Fo=; b=R9fDWKIW18dBZ+Tr6OSWfBb4fymF/JEYShXqRBBaLGEWD13ERFec5rAhWeVBY5fcst HLOE8y+q+SgSUpMSqFJ5VE5mGZTHghcMar4mNn6Yq5FKbPpnewLtJ61u311CTn3K78a0 e1Am9zyMOsVO3KGthYISynRO+aQoAHMLhqK0I=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to :content-type:content-transfer-encoding:content-disposition :message-id; b=VArJ6dkEOYRMWKCU817kS0RmkI4uaOdzQkZGCM+1Ng6Br0Y5WuLmsaKf5cD1gcPD0F 3OPkp4B3SwfR728SWDlUYPLtSZqWb3WFpJQ9VTMidqmPb0AYWAKK6lYNboA5ol/25Wld Z2szZ2VQa3EgwMPNqi6Czfr+7Bfm+2ly7YZMg=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
This patch fixes the CPU frequency printing which is
printed in Hz and not MHz.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/bcm63xx/cpu.c b/arch/mips/bcm63xx/cpu.c
index 0a403dd..9d6cfce 100644
--- a/arch/mips/bcm63xx/cpu.c
+++ b/arch/mips/bcm63xx/cpu.c
@@ -239,7 +239,7 @@ void __init bcm63xx_cpu_init(void)
        printk(KERN_INFO "Detected Broadcom 0x%04x CPU revision %02x\n",
               bcm63xx_cpu_id, bcm63xx_cpu_rev);
        printk(KERN_INFO "CPU frequency is %u MHz\n",
-              bcm63xx_cpu_freq);
+              bcm63xx_cpu_freq / 1000000);
        printk(KERN_INFO "%uMB of RAM installed\n",
               bcm63xx_memory_size >> 20);
 }

<Prev in Thread] Current Thread [Next in Thread>