diff options
author | 2009-06-23 13:21:48 +0000 | |
---|---|---|
committer | 2009-06-23 13:21:48 +0000 | |
commit | 3ca2fd942d57ca8d30f79051fd2b34b9fb5366d2 (patch) | |
tree | 1ec7d005542ff904139cef1be1068dc19b087816 /sys | |
parent | - /dev/drum is long gone; sync comment with reality (diff) | |
download | wireguard-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.c | 5 |
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, |