summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgwk <gwk@openbsd.org>2009-06-23 13:21:48 +0000
committergwk <gwk@openbsd.org>2009-06-23 13:21:48 +0000
commit3ca2fd942d57ca8d30f79051fd2b34b9fb5366d2 (patch)
tree1ec7d005542ff904139cef1be1068dc19b087816 /sys
parent- /dev/drum is long gone; sync comment with reality (diff)
downloadwireguard-openbsd-3ca2fd942d57ca8d30f79051fd2b34b9fb5366d2.tar.xz
wireguard-openbsd-3ca2fd942d57ca8d30f79051fd2b34b9fb5366d2.zip
Ignore the PCT if the PSS has zero entries, only became
a problem after we started striking entires for containing junk and /* should never happen */ happened. Fixes PR 6175 confirmed by submiter: nick templeton nick @ nicktempleton.com ok marco@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpi/acpicpu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpicpu.c b/sys/dev/acpi/acpicpu.c
index 40983ef82ae..e15cc474ec8 100644
--- a/sys/dev/acpi/acpicpu.c
+++ b/sys/dev/acpi/acpicpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpicpu.c,v 1.54 2009/06/10 03:42:20 gwk Exp $ */
+/* $OpenBSD: acpicpu.c,v 1.55 2009/06/23 13:21:48 gwk Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -392,8 +392,7 @@ acpicpu_attach(struct device *parent, struct device *self, void *aux)
acpicpu_getppc(sc);
if (acpicpu_getpct(sc))
sc->sc_flags |= FLAGS_NOPCT;
- else {
-
+ else if (sc->sc_pss_len > 0) {
/* Notify BIOS we are handing p-states */
if (sc->sc_acpi->sc_fadt->pstate_cnt)
acpi_write_pmreg(sc->sc_acpi, ACPIREG_SMICMD, 0,