diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-05-30 16:19:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-05-30 16:19:26 +0000 |
commit | 30cf8304b3c3c246d4e7b8cdf08e4260e316dee5 (patch) | |
tree | 9f2dff0c3ba7d933938d3c83796b9a9fb20b0e05 /sys/arch/i386/pci/pci_machdep.c | |
parent | 0a2136fff807fb71339f3d499b31f09ef14bf891 (diff) |
If ACPI is not compiled in, pci_min_powerstate() has no facts to support
is should return D3. It should return the current power state.
ok kettenis mlarkin
Diffstat (limited to 'sys/arch/i386/pci/pci_machdep.c')
-rw-r--r-- | sys/arch/i386/pci/pci_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.c b/sys/arch/i386/pci/pci_machdep.c index c2331b1f39e..4eeeb6b88fb 100644 --- a/sys/arch/i386/pci/pci_machdep.c +++ b/sys/arch/i386/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.74 2013/05/16 19:26:04 kettenis Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.75 2013/05/30 16:19:25 deraadt Exp $ */ /* $NetBSD: pci_machdep.c,v 1.28 1997/06/06 23:29:17 thorpej Exp $ */ /*- @@ -959,6 +959,6 @@ pci_min_powerstate(pci_chipset_tag_t pc, pcitag_t tag) #if NACPI > 0 return acpi_pci_min_powerstate(pc, tag); #else - return PCI_PMCSR_STATE_D3; + return pci_get_powerstate(pc, tag); #endif } |