Module Name: src Committed By: kre Date: Tue Oct 12 08:09:51 UTC 2021
Modified Files: src/sys/dev/ic: com.c Log Message: Note that while sleeping (HUPCL), time passes. Try to avoid the otherwise infinite loop. To generate a diff of this commit: cvs rdiff -u -r1.367 -r1.368 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.367 src/sys/dev/ic/com.c:1.368 --- src/sys/dev/ic/com.c:1.367 Tue Oct 12 06:25:17 2021 +++ src/sys/dev/ic/com.c Tue Oct 12 08:09:50 2021 @@ -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 @@ comopen(dev_t dev, int flag, int mode, s uimax(diff.tv_usec / 1000, 1); kpause("comopen", false, mstohz(ms), &sc->sc_lock); + getmicrotime(&now); } timerclear(&sc->sc_hup_pending); }