Revision ffab6cf44e9058fe75a33aa86386b22e616a8f6f authored by Sergei Shtylyov on 08 July 2008, 17:27:22 UTC, committed by Bartlomiej Zolnierkiewicz on 08 July 2008, 17:27:22 UTC
The driver uses completely bogus rounding formula for calculating period from
the IDECLK frequency which gives one-off period values (e.g. 11 ns with 100 MHz
IDECLK) which in turn can lead to overclocked IDE transfer timings.  Actually,
rounding is just wrong in this case, so use a mere division for a safe result.

While at it, also:

- give 'ide_palm_clk' variable a more suitable name;

- get rid of the useless 'ideclkp' variable;

- drop the LISP stype 'p' postfix from the 'clkp' variable's name. :-)

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: mcherkashin@ru.mvista.com
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent a861beb
History
File Mode Size
Makefile -rw-r--r-- 530 bytes
datagram.c -rw-r--r-- 13.4 KB
dev.c -rw-r--r-- 112.1 KB
dev_mcast.c -rw-r--r-- 5.5 KB
dst.c -rw-r--r-- 8.0 KB
ethtool.c -rw-r--r-- 22.7 KB
fib_rules.c -rw-r--r-- 14.7 KB
filter.c -rw-r--r-- 11.9 KB
flow.c -rw-r--r-- 8.0 KB
gen_estimator.c -rw-r--r-- 7.1 KB
gen_stats.c -rw-r--r-- 6.5 KB
iovec.c -rw-r--r-- 5.1 KB
kmap_skb.h -rw-r--r-- 360 bytes
link_watch.c -rw-r--r-- 4.9 KB
neighbour.c -rw-r--r-- 66.7 KB
net-sysfs.c -rw-r--r-- 12.5 KB
net-sysfs.h -rw-r--r-- 243 bytes
net_namespace.c -rw-r--r-- 10.4 KB
netevent.c -rw-r--r-- 2.0 KB
netpoll.c -rw-r--r-- 19.1 KB
pktgen.c -rw-r--r-- 90.5 KB
request_sock.c -rw-r--r-- 3.5 KB
rtnetlink.c -rw-r--r-- 33.0 KB
scm.c -rw-r--r-- 6.6 KB
skbuff.c -rw-r--r-- 64.2 KB
sock.c -rw-r--r-- 56.1 KB
stream.c -rw-r--r-- 5.0 KB
sysctl_net_core.c -rw-r--r-- 4.7 KB
user_dma.c -rw-r--r-- 3.3 KB
utils.c -rw-r--r-- 6.2 KB

back to top