summaryrefslogtreecommitdiff
path: root/sys/dev/audio.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-10-30 02:13:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-10-30 02:13:54 +0000
commit20bf6d6619f8ccc59d58fd3cf26108f07386bd76 (patch)
treee1b400da626e979bc4adc1cdac331019d48581a0 /sys/dev/audio.c
parent9e6f613fb06cae84075ada5f1d07b425eecb4502 (diff)
replace workqs with tasks.
ok mpi@
Diffstat (limited to 'sys/dev/audio.c')
-rw-r--r--sys/dev/audio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index d51c63f0093..b7a8f933418 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.115 2013/05/15 08:29:24 ratchov Exp $ */
+/* $OpenBSD: audio.c,v 1.116 2013/10/30 02:13:52 dlg Exp $ */
/* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */
/*
@@ -49,7 +49,7 @@
#include <sys/conf.h>
#include <sys/audioio.h>
#include <sys/device.h>
-#include <sys/workq.h>
+#include <sys/task.h>
#include <dev/audio_if.h>
#include <dev/audiovar.h>
@@ -353,6 +353,7 @@ audioattach(struct device *parent, struct device *self, void *aux)
sc->sc_inports.allports, sc->sc_outports.allports));
timeout_set(&sc->sc_resume_to, audio_resume_to, sc);
+ task_set(&sc->sc_resume_task, audio_resume_task, sc, NULL);
}
int
@@ -1181,8 +1182,7 @@ void
audio_resume_to(void *v)
{
struct audio_softc *sc = v;
- workq_queue_task(NULL, &sc->sc_resume_task, 0,
- audio_resume_task, sc, 0);
+ task_add(systq, &sc->sc_resume_task);
}
void