summaryrefslogtreecommitdiff
path: root/sys/dev/pci/auich.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-06 21:03:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-06 21:03:06 +0000
commitdde7b00df07d5064317db5ff355091c989d5d684 (patch)
tree7ea38e550451394317b7581ff5f8914bd269ec95 /sys/dev/pci/auich.c
parent236f5968eef75c8e14b0b020bb15cc2f53b5041e (diff)
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/pci/auich.c')
-rw-r--r--sys/dev/pci/auich.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c
index 51d3da6c97e..30cad48c7e5 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auich.c,v 1.98 2013/05/24 07:58:46 ratchov Exp $ */
+/* $OpenBSD: auich.c,v 1.99 2013/12/06 21:03:03 deraadt Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
@@ -558,11 +558,6 @@ auich_activate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_QUIESCE:
- rv = config_activate_children(self, act);
- break;
- case DVACT_SUSPEND:
- break;
case DVACT_RESUME:
auich_resume(sc);
rv = config_activate_children(self, act);
@@ -571,6 +566,9 @@ auich_activate(struct device *self, int act)
if (sc->audiodev != NULL)
rv = config_deactivate(sc->audiodev);
break;
+ default:
+ rv = config_activate_children(self, act);
+ break;
}
return (rv);
}