summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-08-31 17:15:04 +0000
committerderaadt <deraadt@openbsd.org>2010-08-31 17:15:04 +0000
commitc4e502ad05885ba79447ca25845a412163ae25c5 (patch)
treefc60bc1a93e83a1f7f4562a9913f686f411a9b26
parentAdd DVACT_QUIECE support. This is called before splhigh() and before (diff)
downloadwireguard-openbsd-c4e502ad05885ba79447ca25845a412163ae25c5.tar.xz
wireguard-openbsd-c4e502ad05885ba79447ca25845a412163ae25c5.zip
Add DVACT_QUIECE support. This is called before splhigh() and before
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod. (missed file)
-rw-r--r--sys/dev/isa/pckbc_isa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/isa/pckbc_isa.c b/sys/dev/isa/pckbc_isa.c
index cedd2131f74..9e59902dbdc 100644
--- a/sys/dev/isa/pckbc_isa.c
+++ b/sys/dev/isa/pckbc_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbc_isa.c,v 1.9 2010/08/31 16:31:00 deraadt Exp $ */
+/* $OpenBSD: pckbc_isa.c,v 1.10 2010/08/31 17:15:04 deraadt Exp $ */
/* $NetBSD: pckbc_isa.c,v 1.2 2000/03/23 07:01:35 thorpej Exp $ */
/*
@@ -114,6 +114,9 @@ pckbc_isa_activate(struct device *self, int act)
int rv = 0;
switch (act) {
+ case DVACT_QUIESCE:
+ rv = config_activate_children(self, act);
+ break;
case DVACT_SUSPEND:
rv = config_activate_children(self, act);
break;