https://github.com/torvalds/linux
Revision 90c5ffe592ff3b33afe2bdfe5e9ec630fc599e32 authored by Vitaly Kuzmichev on 07 July 2011, 13:56:05 UTC, committed by Russell King on 07 July 2011, 14:00:12 UTC
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>
1 parent 38a8914
History
Tip revision: 90c5ffe592ff3b33afe2bdfe5e9ec630fc599e32 authored by Vitaly Kuzmichev on 07 July 2011, 13:56:05 UTC
ARM: 6994/1: smp_twd: Fix typo in 'twd_timer_rate' printing
Tip revision: 90c5ffe
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 966 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.3 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 190.5 KB
Makefile -rw-r--r-- 52.2 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top