summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-01-27 23:04:43 +0000
committerjhb <jhb@FreeBSD.org>2006-01-27 23:04:43 +0000
commit76d6a7a50d89926d3cc12cd965ee8104b56a0da1 (patch)
treeaea2a75f1291934dabd5d72ef934267e3b06c7c2
parent752dede518a13f42a8562db981b85ac17f487ef8 (diff)
downloadFreeBSD-src-76d6a7a50d89926d3cc12cd965ee8104b56a0da1.zip
FreeBSD-src-76d6a7a50d89926d3cc12cd965ee8104b56a0da1.tar.gz
Oops, commit missed file from the previous change to enable multiple
queues in turnstiles. Add a new thread member td_tsqueue which contains the sub-queue of a turnstile that a thread is on when it is blocked on a turnstile.
-rw-r--r--sys/sys/proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index ec43393..654d574 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -269,6 +269,7 @@ struct thread {
u_char td_oncpu; /* (j) Which cpu we are on. */
volatile u_char td_owepreempt; /* (k*) Preempt on last critical_exit */
short td_locks; /* (k) DEBUG: lockmgr count of locks. */
+ u_char td_tsqueue; /* (j) Turnstile queue blocked on. */
struct turnstile *td_blocked; /* (j) Lock thread is blocked on. */
const char *td_lockname; /* (j) Name of lock blocked on. */
LIST_HEAD(, turnstile) td_contested; /* (q) Contested locks. */
OpenPOWER on IntegriCloud