]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6994/1: smp_twd: Fix typo in 'twd_timer_rate' printing
authorVitaly Kuzmichev <vkuzmichev@mvista.com>
Thu, 7 Jul 2011 13:56:05 +0000 (14:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 7 Jul 2011 14:00:12 +0000 (15:00 +0100)
commit83fd5625d8212ced21c3ac8fb2032b9362d5c166
tree4598fd0acbc509d771d8ed69629ef41a308823c9
parent4adfb7c4b8be8ddffc323d0723adbd6184bd97f6
ARM: 6994/1: smp_twd: Fix typo in 'twd_timer_rate' printing

To get hundredths of MHz the rate needs to be divided by 10'000.
Here is an example:
 twd_timer_rate = 123456789
 Before the patch:
    twd_timer_rate / 1000000 = 123
    (twd_timer_rate / 1000000) % 100 = 23
    Result: 123.23MHz.
 After being fixed:
    twd_timer_rate / 1000000 = 123
    (twd_timer_rate / 10000) % 100 = 45
    Result: 123.45MHz.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp_twd.c