summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorAlbert Lee <albertcc@tw.ibm.com>2007-06-26 05:43:15 (GMT)
committerJeff Garzik <jeff@garzik.org>2007-07-02 14:12:34 (GMT)
commit8c781bf77a339748839bfd5eedfe2ad3e0e05c4a (patch)
treeb36feb822eaecec5735dcc18244503d5bb88e15e /drivers/ata/libata-core.c
parentabcdceb9d0bf39da7c7ff8bcdff6eb4d9dfec56f (diff)
downloadlinux-fsl-qoriq-8c781bf77a339748839bfd5eedfe2ad3e0e05c4a.tar.xz
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 'drivers/ata/libata-core.c')
0 files changed, 0 insertions, 0 deletions