summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-12-23 10:48:44 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-12-23 10:48:44 +0000
commit56b40aaf2866afd817ce8b25f39db7be12359923 (patch)
tree40aa16f33b9d715f7d2696474c30a89c8e662ce2 /sys/dev/acpi/acpi.c
parenta5404c468773c76c9a6c3ee521563ed6757c384f (diff)
Revert previous commit. It makes resume hang on some MP systems running
GENERIC.MP.
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index e4d428144b9..1a889be29b7 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.249 2013/12/16 19:11:52 kettenis Exp $ */
+/* $OpenBSD: acpi.c,v 1.250 2013/12/23 10:48:43 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -30,7 +30,6 @@
#include <sys/workq.h>
#include <sys/sched.h>
#include <sys/reboot.h>
-#include <sys/sysctl.h>
#ifdef HIBERNATE
#include <sys/hibernate.h>
@@ -2085,7 +2084,6 @@ acpi_indicator(struct acpi_softc *sc, int led_state)
int
acpi_sleep_state(struct acpi_softc *sc, int state)
{
- extern int perflevel;
int error = ENXIO;
int s;
@@ -2186,10 +2184,6 @@ fail_quiesce:
wsdisplay_resume();
#endif /* NWSDISPLAY > 0 */
- /* Restore hw.setperf */
- if (cpu_setperf != NULL)
- cpu_setperf(perflevel);
-
acpi_record_event(sc, APM_NORMAL_RESUME);
acpi_indicator(sc, ACPI_SST_WORKING);
fail_tts: