diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-02-10 05:47:34 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-02-10 05:47:34 +0000 |
commit | 5b7c0a4237eaf85c61be9933d3f541c8b03609d3 (patch) | |
tree | 50d6a5beab6189f50c27b23b5e48d268b874c2ff /sys/kern | |
parent | ae237abf208796a224b25e7551ab18176227ded2 (diff) | |
download | FreeBSD-src-5b7c0a4237eaf85c61be9933d3f541c8b03609d3.zip FreeBSD-src-5b7c0a4237eaf85c61be9933d3f541c8b03609d3.tar.gz |
In function umtxq_insert_queue, use parameter q (shared/exclusive queue)
instead of hard coded constant. This does not affect RELENG_8 and previous,
because the code only exists in the HEAD.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_umtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c index f80cb15..14a79a3 100644 --- a/sys/kern/kern_umtx.c +++ b/sys/kern/kern_umtx.c @@ -420,7 +420,7 @@ umtxq_insert_queue(struct umtx_q *uq, int q) uc = umtxq_getchain(&uq->uq_key); UMTXQ_LOCKED_ASSERT(uc); KASSERT((uq->uq_flags & UQF_UMTXQ) == 0, ("umtx_q is already on queue")); - uh = umtxq_queue_lookup(&uq->uq_key, UMTX_SHARED_QUEUE); + uh = umtxq_queue_lookup(&uq->uq_key, q); if (uh != NULL) { LIST_INSERT_HEAD(&uc->uc_spare_queue, uq->uq_spare_queue, link); } else { |