From 730a972c469fd9885708bf6d98f3f1480259670f Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 14 Nov 2013 12:41:15 +0000 Subject: replace workqs with tasks for handling resume. state handling is still in workqs. from kimberley manning --- sys/dev/pci/if_ipw.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/if_ipw.c') 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 #include +#include #include #include #include @@ -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; } -- cgit v1.2.3