From: Albert Lee Date: Tue, 26 Jun 2007 05:43:15 +0000 (+0800) Subject: libata: pata_pdc2027x PLL input clock fix X-Git-Tag: v2.6.22~48^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c781bf77a339748839bfd5eedfe2ad3e0e05c4a;p=pandora-kernel.git 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 Cc: Alan Cox Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed