From da63cea4fd7f6f10664bc712ba9963d230f3fa42 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 20 Dec 2005 04:24:57 +0000 Subject: upon wakeup, take us back to the speed we were at; ok drahn --- sys/arch/zaurus/dev/zaurus_apm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/arch/zaurus/dev/zaurus_apm.c b/sys/arch/zaurus/dev/zaurus_apm.c index 7678c021df7..cef20cddf4b 100644 --- a/sys/arch/zaurus/dev/zaurus_apm.c +++ b/sys/arch/zaurus/dev/zaurus_apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zaurus_apm.c,v 1.10 2005/10/31 05:23:33 deraadt Exp $ */ +/* $OpenBSD: zaurus_apm.c,v 1.11 2005/12/20 04:24:56 deraadt Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler @@ -585,6 +585,7 @@ int zapm_resume(struct pxa2x0_apm_softc *pxa_sc) { struct zapm_softc *sc = (struct zapm_softc *)pxa_sc; + extern int perflevel; int a, b; u_int wsrc; int wakeup = 0; @@ -626,6 +627,10 @@ zapm_resume(struct pxa2x0_apm_softc *pxa_sc) #endif } + /* restore hw.setperf */ + if (cpu_setperf != NULL) + cpu_setperf(perflevel); + return (wakeup); } -- cgit v1.2.3