diff options
author | ivoras <ivoras@FreeBSD.org> | 2008-12-19 14:49:14 +0000 |
---|---|---|
committer | ivoras <ivoras@FreeBSD.org> | 2008-12-19 14:49:14 +0000 |
commit | 9b61ff858bfb9cbf14bb777b470cd1982c5282f0 (patch) | |
tree | d9df712b5519fef3af94368f3752d91f5d10ea60 /sys/kern/tty.c | |
parent | 2cd9ec8ad6fc36ea0d3e91db131b87518c88b45a (diff) | |
download | FreeBSD-src-9b61ff858bfb9cbf14bb777b470cd1982c5282f0.zip FreeBSD-src-9b61ff858bfb9cbf14bb777b470cd1982c5282f0.tar.gz |
Further beautify the lock strings to be more pleasing to the eye and
self documenting within 6 characters.
Reviewed by: ed (older version)
Approved by: gnn (older version)
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index bd9f42f..d6735fa 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, "ttyinput"); - cv_init(&tp->t_outwait, "ttyoutput"); - cv_init(&tp->t_bgwait, "ttybackground"); + cv_init(&tp->t_inwait, "ttyinp"); + cv_init(&tp->t_outwait, "ttyout"); + cv_init(&tp->t_bgwait, "ttybgw"); 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, "ttylock", NULL, MTX_DEF); + mtx_init(&tp->t_mtxobj, "ttylck", NULL, MTX_DEF); } knlist_init(&tp->t_inpoll.si_note, tp->t_mtx, NULL, NULL, NULL); |