aboutsummaryrefslogtreecommitdiff
path: root/drivers/ata/sata_inic162x.c
diff options
context:
space:
mode:
authorAlbert Lee <albertcc@tw.ibm.com>2007-06-26 13:43:15 +0800
committerJeff Garzik <jeff@garzik.org>2007-07-02 10:12:34 -0400
commit8c781bf77a339748839bfd5eedfe2ad3e0e05c4a (patch)
treeb36feb822eaecec5735dcc18244503d5bb88e15e /drivers/ata/sata_inic162x.c
parentabcdceb9d0bf39da7c7ff8bcdff6eb4d9dfec56f (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 'drivers/ata/sata_inic162x.c')
0 files changed, 0 insertions, 0 deletions