From 8c9a393a0433c7cc2ee90541164cdcb927fa5bdb Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 2 Oct 2002 20:31:47 +0000 Subject: 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. --- sys/ddb/db_ps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/ddb') 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)) { -- cgit v1.1