summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-10-17 03:56:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-10-17 03:56:01 +0000
commitedc23c755c5272dc39fee3694ffee0a4b023345d (patch)
tree0ff456ae2288364bf581cf6af6442933cffdb4e2 /sys
parent77c9e4a7ffda1996768b6eb5b5a2a71dbe206ef2 (diff)
In the new world order, setperf does not exist on ramdisks.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/apm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c
index 1b64cc41b78..0645fd1a688 100644
--- a/sys/arch/i386/i386/apm.c
+++ b/sys/arch/i386/i386/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.108 2014/10/01 20:49:50 mlarkin Exp $ */
+/* $OpenBSD: apm.c,v 1.109 2014/10/17 03:56:00 deraadt Exp $ */
/*-
* Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved.
@@ -241,7 +241,9 @@ apm_perror(const char *str, struct apmregs *regs)
void
apm_suspend(int state)
{
+#ifndef SMALL_KERNEL
extern int perflevel;
+#endif
int s;
#if NWSDISPLAY > 0
@@ -276,9 +278,11 @@ apm_suspend(int state)
enable_intr();
splx(s);
+#ifndef SMALL_KERNEL
/* restore hw.setperf */
if (cpu_setperf != NULL)
cpu_setperf(perflevel);
+#endif
bufq_restart();
config_suspend_all(DVACT_WAKEUP);