summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-10-02 20:31:47 +0000
committerjhb <jhb@FreeBSD.org>2002-10-02 20:31:47 +0000
commit8c9a393a0433c7cc2ee90541164cdcb927fa5bdb (patch)
tree4e540e60eb5d2ee3fc581a4014df11fe04763455 /sys/ddb
parentf4c70e659ffb00b8f69da48f3d5a0e5bb540f8cb (diff)
downloadFreeBSD-src-8c9a393a0433c7cc2ee90541164cdcb927fa5bdb.zip
FreeBSD-src-8c9a393a0433c7cc2ee90541164cdcb927fa5bdb.tar.gz
Rename the mutex thread and process states to use a more generic 'LOCK'
name instead. (e.g., SLOCK instead of SMTX, TD_ON_LOCK() instead of TD_ON_MUTEX()) Eventually a turnstile abstraction will be added that will be shared with mutexes and other types of locks. SLOCK/TDI_LOCK will be used internally by the turnstile code and will not be specific to mutexes. Making the change now ensures that turnstiles can be dropped in at a later date without affecting the ABI of userland applications.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_ps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c
index cb9bfc9..26dc00b 100644
--- a/sys/ddb/db_ps.c
+++ b/sys/ddb/db_ps.c
@@ -138,9 +138,9 @@ db_ps(dummy1, dummy2, dummy3, dummy4)
}
switch (td->td_state) {
case TDS_INHIBITED:
- if (TD_ON_MUTEX(td)) {
- db_printf("[MTX %6s %8p]",
- td->td_mtxname,
+ if (TD_ON_LOCK(td)) {
+ db_printf("[LOCK %6s %8p]",
+ td->td_lockname,
(void *)td->td_blocked);
}
if (TD_IS_SLEEPING(td)) {
OpenPOWER on IntegriCloud