PCI: Speed up device reset function
authorSheng Yang <sheng@linux.intel.com>
Mon, 9 Feb 2009 06:53:47 +0000 (14:53 +0800)
committerJesse Barnes <jbarnes@hobbes.lan>
Fri, 20 Mar 2009 02:29:31 +0000 (19:29 -0700)
For all devices need to do function level reset, currently we need wait for
at least 200ms, which can be too long if we have lots of devices...

The patch checked pending bit before msleep() to skip some unnecessary
sleeping interval.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c

Simple merge