kernel_optimize_test/drivers/pci/pcie
Andrew Patterson 987a4c783a PCI: Use msleep instead of cpu_relax during ASPM link retraining
The cpu_relax() function can be a noop on certain architectures like
IA-64 when CPU threads are disabled, so use msleep instead during link
retraining busy/wait loop.

Introduce define LINK_RETRAIN_TIMEOUT instead of hard-coding timeout in
pcie_aspm_configure_common_clock.

Use time_after() to avoid jiffy wraparound when checking for expired
timeout.

After timeout expires, recheck link status register link training bit
instead of checking for expired timeout to avoid possible false
positive.

Note that Matthew Wilcox came up with the first rough version of this
patch.

Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-01-07 11:13:28 -08:00
..
aer PCI hotplug: aerdrv: fix a typo in error message 2009-01-07 11:12:41 -08:00
aspm.c PCI: Use msleep instead of cpu_relax during ASPM link retraining 2009-01-07 11:13:28 -08:00
Kconfig
Makefile
portdrv_bus.c PCI: PCIe portdrv: Rearrange code so that related things are together 2009-01-07 11:13:27 -08:00
portdrv_core.c PCI: PCIe portdrv: Add kerneldoc comments to remining core funtions 2009-01-07 11:13:27 -08:00
portdrv_pci.c PCI PM: Split PCI Express port suspend-resume 2009-01-07 11:13:08 -08:00
portdrv.h