diff options
author | 2013-12-06 21:03:01 +0000 | |
---|---|---|
committer | 2013-12-06 21:03:01 +0000 | |
commit | 37ecb59650d3f381e0120446318f17da385095e3 (patch) | |
tree | c81a3d99b5090a799f492b07d59e5f336209bce0 /sys/dev/acpi/acpi.c | |
parent | It seems to be possible to truncate an object while it is still mapped. (diff) | |
download | wireguard-openbsd-37ecb59650d3f381e0120446318f17da385095e3.tar.xz wireguard-openbsd-37ecb59650d3f381e0120446318f17da385095e3.zip |
Add a DVACT_WAKEUP op to the *_activate() API. This is called after the
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r-- | sys/dev/acpi/acpi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 1683dbdc36c..6281c754d61 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.247 2013/11/06 10:40:36 mpi Exp $ */ +/* $OpenBSD: acpi.c,v 1.248 2013/12/06 21:03:02 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -2177,6 +2177,9 @@ fail_suspend: fail_quiesce: bufq_restart(); + + config_suspend(TAILQ_FIRST(&alldevs), DVACT_WAKEUP); + #if NWSDISPLAY > 0 wsdisplay_resume(); #endif /* NWSDISPLAY > 0 */ |