diff options
author | jhb <jhb@FreeBSD.org> | 2002-10-02 20:31:47 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-10-02 20:31:47 +0000 |
commit | 8c9a393a0433c7cc2ee90541164cdcb927fa5bdb (patch) | |
tree | 4e540e60eb5d2ee3fc581a4014df11fe04763455 /sys/kern/tty.c | |
parent | f4c70e659ffb00b8f69da48f3d5a0e5bb540f8cb (diff) | |
download | FreeBSD-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/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index c075a47..717b123 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -2399,8 +2399,8 @@ ttyinfo(struct tty *tp) if (TD_ON_RUNQ(td) || (TD_IS_RUNNING(td))) { stmp = "running"; - } else if (TD_ON_MUTEX(td)) { - stmp = td->td_mtxname; + } else if (TD_ON_LOCK(td)) { + stmp = td->td_lockname; } else if (td->td_wmesg) { stmp = td->td_wmesg; } else { @@ -2425,7 +2425,7 @@ ttyinfo(struct tty *tp) ttyprintf(tp, " cmd: %s %d [%s%s] ", pick->p_comm, pick->p_pid, - TD_ON_MUTEX(td) ? "*" : "", + TD_ON_LOCK(td) ? "*" : "", stmp); /* Print user time. */ |