Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Note that while sleeping (HUPCL), time passes.



details:   https://anonhg.NetBSD.org/src/rev/ae7688f986a7
branches:  trunk
changeset: 989112:ae7688f986a7
user:      kre <kre%NetBSD.org@localhost>
date:      Tue Oct 12 08:09:50 2021 +0000

description:
Note that while sleeping (HUPCL), time passes.
Try to avoid the otherwise infinite loop.

diffstat:

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

diffs (26 lines):

diff -r 11d477d7e16c -r ae7688f986a7 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Tue Oct 12 07:43:49 2021 +0000
+++ b/sys/dev/ic/com.c  Tue Oct 12 08:09:50 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.367 2021/10/12 06:25:17 kre Exp $ */
+/* $NetBSD: com.c,v 1.368 2021/10/12 08:09:50 kre 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.367 2021/10/12 06:25:17 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.368 2021/10/12 08:09:50 kre Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -994,6 +994,7 @@
                                    uimax(diff.tv_usec / 1000, 1);
                                kpause("comopen", false, mstohz(ms),
                                    &sc->sc_lock);
+                               getmicrotime(&now);
                        }
                        timerclear(&sc->sc_hup_pending);
                }



Home | Main Index | Thread Index | Old Index