Skip to contentSkip to conversation

bcm63xx: fix typo when printing CPU frequency

PATCH In review Florian Fainelli 2 participants 3 messages May 31, 2009 – Jun 1, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 7/10 bcm63xx: fix typo when printing CPU frequency

This patch corrects the comment about the CPU frequency which is actually printed in Hz and not MHz.

---

arch/mips/bcm63xx/cpu.c +1 -1
index 0a403dd..410c788 100644
@@ -238,7 +238,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",
+	printk(KERN_INFO "CPU frequency is %u Hz\n",
 	       bcm63xx_cpu_freq);
 	printk(KERN_INFO "%uMB of RAM installed\n",
 	       bcm63xx_memory_size >> 20);
#1 lore raw
Quoted 10 lines · Florian Fainelli

This patch corrects the comment about the CPU frequency which is actually printed in Hz and not MHz.

---

arch/mips/bcm63xx/cpu.c +0 -0
index 0a403dd..410c788 100644

arch/mips/bcm63xx/cpu.c void __init bcm63xx_cpu_init(void) · line 241

Quoted 5 lines
arch/mips/bcm63xx/cpu.c +1 -1
@@ -238,7 +238,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",
+	printk(KERN_INFO "CPU frequency is %u Hz\n",

While technically ok I would suggest to print the number in MHz. Acuracy probably doesn't matter so even rounding to whole MHz would be ok.

Want me to apply anyway?

Ralf

#2 lore raw

Le Monday 01 June 2009 16:46:18 Ralf Baechle, vous avez écrit :

Quoted 20 lines · Florian Fainelli
Quoted 10 lines

This patch corrects the comment about the CPU frequency which is actually printed in Hz and not MHz.

---

arch/mips/bcm63xx/cpu.c +0 -0
index 0a403dd..410c788 100644

arch/mips/bcm63xx/cpu.c void __init bcm63xx_cpu_init(void) · line 241

Quoted 5 lines
arch/mips/bcm63xx/cpu.c +1 -1
@@ -238,7 +238,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",
+	printk(KERN_INFO "CPU frequency is %u Hz\n",

While technically ok I would suggest to print the number in MHz. Acuracy probably doesn't matter so even rounding to whole MHz would be ok.

Quoted 1 line

Want me to apply anyway?

No that is a one-liner I will respin a new one which prints the frequency in Mhz directly.

Signature · 4 lines
Best regards, Florian Fainelli
Email : [email protected]
http://openwrt.org
-------------------------------