diff options
author | sam <sam@FreeBSD.org> | 2006-07-10 01:09:14 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-07-10 01:09:14 +0000 |
commit | e243ed9045b81b153e6186a285dd004696280aa7 (patch) | |
tree | 69b7dbafee3fa58c7666f5f19f444de1b5018613 /sys | |
parent | 96c7ebd076e23b10f4bcba680fa46220ea1a5d97 (diff) | |
download | FreeBSD-src-e243ed9045b81b153e6186a285dd004696280aa7.zip FreeBSD-src-e243ed9045b81b153e6186a285dd004696280aa7.tar.gz |
sync w/ HEAD: use taskqueue_start_threads and run thread at PI_NET
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ath/if_ath.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 49a2f79..a1fc569 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -394,9 +394,8 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) sc->sc_tq = taskqueue_create("ath_taskq", M_NOWAIT, taskqueue_thread_enqueue, &sc->sc_tq, &sc->sc_tqproc); - /* XXX return error */ - kthread_create(taskqueue_thread_loop, &sc->sc_tq, &sc->sc_tqproc, - 0, 0, "%s taskq", ifp->if_xname); + taskqueue_start_threads(&sc->sc_tq, 1, PI_NET, + "%s taskq", ifp->if_xname); TASK_INIT(&sc->sc_rxtask, 0, ath_rx_proc, sc); TASK_INIT(&sc->sc_rxorntask, 0, ath_rxorn_proc, sc); |