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
netfilter
Kconfig -rw-r--r-- 1.6 KB
Makefile -rw-r--r-- 270 bytes
README -rw-r--r-- 299 bytes
TODO -rw-r--r-- 1.2 KB
af_decnet.c -rw-r--r-- 53.4 KB
dn_dev.c -rw-r--r-- 33.0 KB
dn_fib.c -rw-r--r-- 18.0 KB
dn_neigh.c -rw-r--r-- 15.5 KB
dn_nsp_in.c -rw-r--r-- 21.4 KB
dn_nsp_out.c -rw-r--r-- 17.6 KB
dn_route.c -rw-r--r-- 43.7 KB
dn_rules.c -rw-r--r-- 5.6 KB
dn_table.c -rw-r--r-- 20.0 KB
dn_timer.c -rw-r--r-- 3.1 KB
sysctl_net_decnet.c -rw-r--r-- 9.8 KB

README

back to top