Module Name:    src
Committed By:   riastradh
Date:           Mon Oct  3 19:26:35 UTC 2022

Modified Files:
        src/sys/dev/ic: com.c

Log Message:
com(4): Update confusing comment from decades ago to reflect now.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.373 -r1.374 src/sys/dev/ic/com.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/com.c
diff -u src/sys/dev/ic/com.c:1.373 src/sys/dev/ic/com.c:1.374
--- src/sys/dev/ic/com.c:1.373	Fri Nov 12 21:57:13 2021
+++ src/sys/dev/ic/com.c	Mon Oct  3 19:26:35 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.373 2021/11/12 21:57:13 jmcneill Exp $ */
+/* $NetBSD: com.c,v 1.374 2022/10/03 19:26:35 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.373 2021/11/12 21:57:13 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.374 2022/10/03 19:26:35 riastradh Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -987,9 +987,9 @@ com_shutdown(struct com_softc *sc)
 	com_break(sc, 0);
 
 	/*
-	 * Hang up if necessary.  Wait a bit, so the other side has time to
-	 * notice even if we immediately open the port again.
-	 * Avoid tsleeping above splhigh().
+	 * Hang up if necessary.  Record when we hung up, so if we
+	 * immediately open the port again, we will wait a bit until
+	 * the other side has had time to notice that we hung up.
 	 */
 	if (ISSET(tp->t_cflag, HUPCL)) {
 		com_modem(sc, 0);

Reply via email to