summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-12-20 09:36:40 +0000
committered <ed@FreeBSD.org>2008-12-20 09:36:40 +0000
commit1bd8105e627bfb2a3c51b676edc74065f98cc897 (patch)
tree08193b277ad027a2f02274b972505ace91b71ac4 /sys
parentcfc6723016fb9ae5959d54d86b69f58478ac7091 (diff)
downloadFreeBSD-src-1bd8105e627bfb2a3c51b676edc74065f98cc897.zip
FreeBSD-src-1bd8105e627bfb2a3c51b676edc74065f98cc897.tar.gz
Let wchan names more closely match pre-MPSAFE TTY behaviour.
Right now the wchan strings "ttyinp" and "ttybgw" only differ one character from the strings we used prior to MPSAFE TTY. Just rename them back to their pre-MPSAFE TTY counterparts. Also rename "ttylck" to "ttymtx", which should make it more clear that a process is blocked on the TTY mutex, not some other form of locking.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index d6735fa..adf24b5 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -871,9 +871,9 @@ tty_alloc(struct ttydevsw *tsw, void *sc, struct mtx *mutex)
tty_init_termios(tp);
- cv_init(&tp->t_inwait, "ttyinp");
+ cv_init(&tp->t_inwait, "ttyin");
cv_init(&tp->t_outwait, "ttyout");
- cv_init(&tp->t_bgwait, "ttybgw");
+ cv_init(&tp->t_bgwait, "ttybg");
cv_init(&tp->t_dcdwait, "ttydcd");
ttyinq_init(&tp->t_inq);
@@ -884,7 +884,7 @@ tty_alloc(struct ttydevsw *tsw, void *sc, struct mtx *mutex)
tp->t_mtx = mutex;
} else {
tp->t_mtx = &tp->t_mtxobj;
- mtx_init(&tp->t_mtxobj, "ttylck", NULL, MTX_DEF);
+ mtx_init(&tp->t_mtxobj, "ttymtx", NULL, MTX_DEF);
}
knlist_init(&tp->t_inpoll.si_note, tp->t_mtx, NULL, NULL, NULL);
OpenPOWER on IntegriCloud