summaryrefslogtreecommitdiffstats
path: root/sys/dev/mly
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-10-26 06:32:21 +0000
committerjhb <jhb@FreeBSD.org>2001-10-26 06:32:21 +0000
commite1bba71fc994749776fc980d0ba8779a3c728bd1 (patch)
tree4970e512925cb61a446831a485b367f3b71fa0ef /sys/dev/mly
parentd410ad416617dd759436028e1cb0f545fe5f5d07 (diff)
downloadFreeBSD-src-e1bba71fc994749776fc980d0ba8779a3c728bd1.zip
FreeBSD-src-e1bba71fc994749776fc980d0ba8779a3c728bd1.tar.gz
Add locking to taskqueues. There is one mutex per task, one mutex per
queue, and a mutex to protect the global list of taskqueues. The only visible change is that a TASK_DESTROY() macro has been added to mirror the TASK_INIT() macro to destroy a task before it is free'd. Submitted by: Andrew Reiter <awr@watson.org>
Diffstat (limited to 'sys/dev/mly')
-rw-r--r--sys/dev/mly/mly.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c
index e7b7a5c..06115f3 100644
--- a/sys/dev/mly/mly.c
+++ b/sys/dev/mly/mly.c
@@ -732,6 +732,10 @@ mly_free(struct mly_softc *sc)
/* release the register window mapping */
if (sc->mly_regs_resource != NULL)
bus_release_resource(sc->mly_dev, SYS_RES_MEMORY, sc->mly_regs_rid, sc->mly_regs_resource);
+
+#if __FreeBSD_version >= 500005
+ TASK_DESTROY(&sc->mly_task_complete);
+#endif
}
/********************************************************************************
OpenPOWER on IntegriCloud