perform cpu setperf at same position in sequence as acpi.c
authorderaadt <deraadt@openbsd.org>
Thu, 18 Dec 2014 17:02:35 +0000 (17:02 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 18 Dec 2014 17:02:35 +0000 (17:02 +0000)
sys/arch/i386/i386/apm.c

index f16fd6b..ff4454a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: apm.c,v 1.111 2014/12/18 17:00:19 deraadt Exp $       */
+/*     $OpenBSD: apm.c,v 1.112 2014/12/18 17:02:35 deraadt Exp $       */
 
 /*-
  * Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved.
@@ -279,9 +279,6 @@ apm_suspend(int state)
        splx(s);
 
        resume_randomness();            /* force RNG upper level reseed */
-       /* restore hw.setperf */
-       if (cpu_setperf != NULL)
-               cpu_setperf(perflevel);
        bufq_restart();
 
        config_suspend_all(DVACT_WAKEUP);
@@ -289,6 +286,10 @@ apm_suspend(int state)
 #if NWSDISPLAY > 0
        wsdisplay_resume();
 #endif /* NWSDISPLAY > 0 */
+
+       /* restore hw.setperf */
+       if (cpu_setperf != NULL)
+               cpu_setperf(perflevel);
 }
 
 void