summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_vr.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/if_vr.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/if_vr.c')
-rw-r--r--sys/dev/pci/if_vr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 394451e3baa..075563a75f2 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.130 2013/08/21 05:21:44 dlg Exp $ */
+/* $OpenBSD: if_vr.c,v 1.131 2013/12/06 21:03:04 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -699,9 +699,6 @@ vr_activate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_QUIESCE:
- rv = config_activate_children(self, act);
- break;
case DVACT_SUSPEND:
if (ifp->if_flags & IFF_RUNNING)
vr_stop(sc);
@@ -712,6 +709,9 @@ vr_activate(struct device *self, int act)
if (ifp->if_flags & IFF_UP)
vr_init(sc);
break;
+ default:
+ rv = config_activate_children(self, act);
+ break;
}
return (rv);
}