diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2020-02-16 23:37:24 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2020-02-16 23:37:24 +0000 |
commit | 6f912c69d2cefb6b9a0aa1ae40d88b3fc4b63b57 (patch) | |
tree | 5b6b1ce1ae77c5b1005b2e4abe968efa2098430e /sys/arch | |
parent | 9822ae5403f96b19c1ea7273a82e66b1876c35ad (diff) |
Send a resume event to apmd(8), like done by apm(4) and acpi(4)
Test & ok visa@. Sadly his Lemote doesn't come back from sleep, with or
without this change.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/loongson/dev/apm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c index f768c63cced..38fd5a8c30e 100644 --- a/sys/arch/loongson/dev/apm.c +++ b/sys/arch/loongson/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.33 2019/12/31 13:48:31 visa Exp $ */ +/* $OpenBSD: apm.c,v 1.34 2020/02/16 23:37:23 jca Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -434,5 +434,7 @@ apm_suspend(int state) wsdisplay_resume(); #endif + apm_record_event(APM_NORMAL_RESUME, "System", "resumed from sleep"); + return rv; } |