summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/sili_pci.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-12-06 21:03:01 +0000
committerderaadt <deraadt@openbsd.org>2013-12-06 21:03:01 +0000
commit37ecb59650d3f381e0120446318f17da385095e3 (patch)
treec81a3d99b5090a799f492b07d59e5f336209bce0 /sys/dev/pci/sili_pci.c
parentIt seems to be possible to truncate an object while it is still mapped. (diff)
downloadwireguard-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/pci/sili_pci.c')
-rw-r--r--sys/dev/pci/sili_pci.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/dev/pci/sili_pci.c b/sys/dev/pci/sili_pci.c
index d4f0b6510df..00e1865de4b 100644
--- a/sys/dev/pci/sili_pci.c
+++ b/sys/dev/pci/sili_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sili_pci.c,v 1.13 2012/10/08 21:47:50 deraadt Exp $ */
+/* $OpenBSD: sili_pci.c,v 1.14 2013/12/06 21:03:04 deraadt Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -206,19 +206,13 @@ sili_pci_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;
- case DVACT_POWERDOWN:
- rv = config_activate_children(self, act);
- break;
case DVACT_RESUME:
sili_resume(sc);
rv = config_activate_children(self, act);
break;
+ default:
+ rv = config_activate_children(self, act);
+ break;
}
return (rv);
}