diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-20 04:24:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-20 04:24:57 +0000 |
commit | da63cea4fd7f6f10664bc712ba9963d230f3fa42 (patch) | |
tree | 632701d75523390c029654a9991ced65906254ea /sys | |
parent | 788fe7f6b5fec152de306416eb3f41750b27778d (diff) |
upon wakeup, take us back to the speed we were at; ok drahn
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/zaurus/dev/zaurus_apm.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <uwe@bsdx.de> @@ -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); } |