Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic com(4): Update confusing comment from decades ago...



details:   https://anonhg.NetBSD.org/src/rev/c267577edf9a
branches:  trunk
changeset: 371718:c267577edf9a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Oct 03 19:26:35 2022 +0000

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

No functional change.

diffstat:

 sys/dev/ic/com.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 33460f9c80f4 -r c267577edf9a sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Mon Oct 03 19:13:08 2022 +0000
+++ b/sys/dev/ic/com.c  Mon Oct 03 19:26:35 2022 +0000
@@ -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_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);



Home | Main Index | Thread Index | Old Index