diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-11-14 12:41:15 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-11-14 12:41:15 +0000 |
commit | 730a972c469fd9885708bf6d98f3f1480259670f (patch) | |
tree | cac04fc471f945f7703ff639d20dfd22af4b400e /sys/dev/pci/if_ipw.c | |
parent | 9629eeb4896781c95966d9ea1f9dcb19ff7250f4 (diff) |
replace workqs with tasks for handling resume. state handling is
still in workqs.
from kimberley manning
Diffstat (limited to 'sys/dev/pci/if_ipw.c')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 49116a3a2f2..5bcdd04a692 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipw.c,v 1.96 2013/08/07 01:06:35 bluhm Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.97 2013/11/14 12:41:14 dlg Exp $ */ /*- * Copyright (c) 2004-2008 @@ -25,6 +25,7 @@ #include <sys/param.h> #include <sys/sockio.h> +#include <sys/task.h> #include <sys/workq.h> #include <sys/mbuf.h> #include <sys/kernel.h> @@ -170,6 +171,8 @@ ipw_attach(struct device *parent, struct device *self, void *aux) sc->sc_pct = pa->pa_pc; sc->sc_pcitag = pa->pa_tag, + task_set(&sc->sc_resume_t, ipw_resume, sc, NULL); + /* clear device specific PCI configuration register 0x41 */ data = pci_conf_read(sc->sc_pct, sc->sc_pcitag, 0x40); data &= ~0x0000ff00; @@ -301,8 +304,7 @@ ipw_activate(struct device *self, int act) ipw_stop(ifp, 0); break; case DVACT_RESUME: - workq_queue_task(NULL, &sc->sc_resume_wqt, 0, - ipw_resume, sc, NULL); + task_add(systq, &sc->sc_resume_t); break; } |