diff options
author | jkim <jkim@FreeBSD.org> | 2010-10-20 16:47:09 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-10-20 16:47:09 +0000 |
commit | 0ed43ce056fe56ef364d95425406491085c93d7e (patch) | |
tree | 1860d37b19d1eea9c460d5dac009f292d17cd26f /sys/dev/pci/pci_pci.c | |
parent | 995314da5fb054dcab0630293481767905c19a22 (diff) | |
download | FreeBSD-src-0ed43ce056fe56ef364d95425406491085c93d7e.zip FreeBSD-src-0ed43ce056fe56ef364d95425406491085c93d7e.tar.gz |
Introduce a new tunable 'hw.pci.do_power_suspend'. This tunable lets you
avoid PCI power state transition from D0 to D3 for suspending case. Default
is 1 or enabled.
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-rw-r--r-- | sys/dev/pci/pci_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c index 5dd8dbe..7915818 100644 --- a/sys/dev/pci/pci_pci.c +++ b/sys/dev/pci/pci_pci.c @@ -447,7 +447,7 @@ pcib_suspend(device_t dev) pcib_cfg_save(device_get_softc(dev)); error = bus_generic_suspend(dev); - if (error == 0) { + if (error == 0 && pci_do_power_suspend) { dstate = PCI_POWERSTATE_D3; pcib = device_get_parent(device_get_parent(dev)); if (PCIB_POWER_FOR_SLEEP(pcib, dev, &dstate) == 0) |