Sfoglia il codice sorgente

ARM: twd: fix display of twd frequency

The fraction of MHz was not being displayed correctly as the calculation
was a factor of 10 out.  Fix this.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King 14 anni fa
parent
commit
6426d2c2f0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      arch/arm/kernel/smp_twd.c

+ 1 - 1
arch/arm/kernel/smp_twd.c

@@ -114,7 +114,7 @@ static void __cpuinit twd_calibrate_rate(void)
 		twd_timer_rate = (0xFFFFFFFFU - count) * (HZ / 5);
 
 		printk("%lu.%02luMHz.\n", twd_timer_rate / 1000000,
-			(twd_timer_rate / 100000) % 100);
+			(twd_timer_rate / 1000000) % 100);
 	}
 
 	load = twd_timer_rate / HZ;