Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2008 14:49:15 +0000 (UTC)
From:      Ivan Voras <ivoras@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186322 - head/sys/kern
Message-ID:  <200812191449.mBJEnFOb074699@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ivoras
Date: Fri Dec 19 14:49:14 2008
New Revision: 186322
URL: http://svn.freebsd.org/changeset/base/186322

Log:
  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)

Modified:
  head/sys/kern/tty.c

Modified: head/sys/kern/tty.c
==============================================================================
--- head/sys/kern/tty.c	Fri Dec 19 14:47:38 2008	(r186321)
+++ head/sys/kern/tty.c	Fri Dec 19 14:49:14 2008	(r186322)
@@ -871,9 +871,9 @@ tty_alloc(struct ttydevsw *tsw, void *sc
 
 	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
 		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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812191449.mBJEnFOb074699>