summaryrefslogtreecommitdiffstats
path: root/sys/i386/apm
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>1999-09-11 15:12:31 +0000
committernsayer <nsayer@FreeBSD.org>1999-09-11 15:12:31 +0000
commit5f53706dddc4f848884bb7de0149a4beb586475a (patch)
tree67f50af792da3381ad6af383081c845301d44712 /sys/i386/apm
parent94581eee511c7bfacbfbd174ec6eb9347c7897aa (diff)
downloadFreeBSD-src-5f53706dddc4f848884bb7de0149a4beb586475a.zip
FreeBSD-src-5f53706dddc4f848884bb7de0149a4beb586475a.tar.gz
Handle UserStandbyRequests as well as the other 3 members of the
{,USER}{STANDBY,SUSPEND}REQ matrix.
Diffstat (limited to 'sys/i386/apm')
-rw-r--r--sys/i386/apm/apm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c
index a31a36c..e552689 100644
--- a/sys/i386/apm/apm.c
+++ b/sys/i386/apm/apm.c
@@ -940,6 +940,14 @@ apm_processevent(void)
}
}
break;
+ OPMEV_DEBUGMESSAGE(PMEV_USERSTANDBYREQ);
+ if (apm_op_inprog == 0) {
+ apm_op_inprog++;
+ if (apm_record_event(sc, apm_event)) {
+ apm_suspend(PMST_STANDBY);
+ }
+ }
+ break;
OPMEV_DEBUGMESSAGE(PMEV_SUSPENDREQ);
apm_lastreq_notify();
if (apm_op_inprog == 0) {
OpenPOWER on IntegriCloud