From 20bf6d6619f8ccc59d58fd3cf26108f07386bd76 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 30 Oct 2013 02:13:54 +0000 Subject: replace workqs with tasks. ok mpi@ --- sys/dev/audio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/audio.c') 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 #include #include -#include +#include #include #include @@ -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 -- cgit v1.2.3