summaryrefslogtreecommitdiff
path: root/sys/dev/pci/yds.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/yds.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/yds.c')
-rw-r--r--sys/dev/pci/yds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c
index c7b16e8aeeb..525b727c5c1 100644
--- a/sys/dev/pci/yds.c
+++ b/sys/dev/pci/yds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yds.c,v 1.44 2013/10/01 20:06:02 sf Exp $ */
+/* $OpenBSD: yds.c,v 1.45 2013/12/06 21:03:04 deraadt Exp $ */
/* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */
/*
@@ -1744,8 +1744,6 @@ yds_activate(struct device *self, int act)
if (sc->sc_resume_active)
yds_close(sc);
break;
- case DVACT_SUSPEND:
- break;
case DVACT_RESUME:
yds_halt(sc);
yds_init(sc, 1);
@@ -1754,6 +1752,9 @@ yds_activate(struct device *self, int act)
yds_open(sc, 0);
rv = config_activate_children(self, act);
break;
+ default:
+ rv = config_activate_children(self, act);
+ break;
}
return (rv);
}