Skip to content

Commit

Permalink
ARM: twd: fix display of twd frequency
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Jan 11, 2011
1 parent 56949d4 commit 6426d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/smp_twd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6426d2c

Please sign in to comment.