summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/pci/pci_machdep.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-05-30 16:19:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-05-30 16:19:26 +0000
commit30cf8304b3c3c246d4e7b8cdf08e4260e316dee5 (patch)
tree9f2dff0c3ba7d933938d3c83796b9a9fb20b0e05 /sys/arch/amd64/pci/pci_machdep.c
parent0a2136fff807fb71339f3d499b31f09ef14bf891 (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/amd64/pci/pci_machdep.c')
-rw-r--r--sys/arch/amd64/pci/pci_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/pci/pci_machdep.c b/sys/arch/amd64/pci/pci_machdep.c
index 7c22fb665e0..b6afa739d27 100644
--- a/sys/arch/amd64/pci/pci_machdep.c
+++ b/sys/arch/amd64/pci/pci_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.c,v 1.56 2012/10/16 13:57:46 mikeb Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.57 2013/05/30 16:19:25 deraadt Exp $ */
/* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */
/*-
@@ -685,6 +685,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
}