diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-06 21:03:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-06 21:03:06 +0000 |
commit | dde7b00df07d5064317db5ff355091c989d5d684 (patch) | |
tree | 7ea38e550451394317b7581ff5f8914bd269ec95 /sys/scsi/mpath_sym.c | |
parent | 236f5968eef75c8e14b0b020bb15cc2f53b5041e (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/scsi/mpath_sym.c')
-rw-r--r-- | sys/scsi/mpath_sym.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/scsi/mpath_sym.c b/sys/scsi/mpath_sym.c index 8ea8a1344e3..4e60c8e77ca 100644 --- a/sys/scsi/mpath_sym.c +++ b/sys/scsi/mpath_sym.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath_sym.c,v 1.18 2013/09/03 06:39:04 dlg Exp $ */ +/* $OpenBSD: mpath_sym.c,v 1.19 2013/12/06 21:03:02 deraadt Exp $ */ /* * Copyright (c) 2010 David Gwynne <dlg@openbsd.org> @@ -179,9 +179,6 @@ sym_activate(struct device *self, int act) int rv = 0; switch (act) { - case DVACT_SUSPEND: - case DVACT_RESUME: - break; case DVACT_DEACTIVATE: if (sc->sc_path.p_group != NULL) mpath_path_detach(&sc->sc_path); |