diff options
author | Albert Lee <albertcc@tw.ibm.com> | 2007-06-26 13:43:15 +0800 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-02 10:12:34 -0400 |
commit | 8c781bf77a339748839bfd5eedfe2ad3e0e05c4a (patch) | |
tree | b36feb822eaecec5735dcc18244503d5bb88e15e /net | |
parent | abcdceb9d0bf39da7c7ff8bcdff6eb4d9dfec56f (diff) |
libata: pata_pdc2027x PLL input clock fix
Recently the PLL input clock of pata_pdc2027x is sometimes detected
higer than expected (e.g. 20.027 MHz compared to 16.714 MHz).
It seems sometimes the mdelay() function is not as precise as it
used to be. Per Alan's advice, HT or power management might affect
the precision of mdelay().
This patch calls gettimeofday() to mesure the time elapsed and
calculate the PLL input clock accordingly.
Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions