diff options
author | 2009-06-01 19:59:18 +0000 | |
---|---|---|
committer | 2009-06-01 19:59:18 +0000 | |
commit | f310b7815e8bd8a4f598b83f1283686dc0c9b9bf (patch) | |
tree | c8485897551fdef8818a132dad88c319f02f71e3 | |
parent | Since we've now cleared up a lot of the PG_RELEASED setting, remove the (diff) | |
download | wireguard-openbsd-f310b7815e8bd8a4f598b83f1283686dc0c9b9bf.tar.xz wireguard-openbsd-f310b7815e8bd8a4f598b83f1283686dc0c9b9bf.zip |
Use proper pmap during ACPI sleep on amd64. Original code by Kurt,
this version by Art.
additional ok by marco@
-rw-r--r-- | sys/arch/amd64/amd64/acpi_machdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c index 075b9e2f249..d6a044c0dd3 100644 --- a/sys/arch/amd64/amd64/acpi_machdep.c +++ b/sys/arch/amd64/amd64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.17 2009/05/31 03:42:38 mlarkin Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.18 2009/06/01 19:59:18 mlarkin Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -202,9 +202,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) } if (rcr3() != pmap_kernel()->pm_pdirpa) { - printf("%s: acpi_sleep_machdep: only kernel may sleep\n", - DEVNAME(sc)); - return (ENXIO); + pmap_activate(curproc); } /* |