Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c In gttwsi_wait(), don't use cv_timedwait_sig() -...



details:   https://anonhg.NetBSD.org/src/rev/61631032a7b5
branches:  trunk
changeset: 467046:61631032a7b5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Jan 11 22:21:25 2020 +0000

description:
In gttwsi_wait(), don't use cv_timedwait_sig() -- there's no reason to
catch signals here, and the code would need to handle them properly, which
this code does not.

diffstat:

 sys/dev/i2c/gttwsi_core.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2fc1c33dc3b1 -r 61631032a7b5 sys/dev/i2c/gttwsi_core.c
--- a/sys/dev/i2c/gttwsi_core.c Sat Jan 11 21:45:08 2020 +0000
+++ b/sys/dev/i2c/gttwsi_core.c Sat Jan 11 22:21:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gttwsi_core.c,v 1.10 2019/12/25 14:08:47 thorpej Exp $ */
+/*     $NetBSD: gttwsi_core.c,v 1.11 2020/01/11 22:21:25 thorpej Exp $ */
 /*
  * Copyright (c) 2008 Eiji Kawauchi.
  * All rights reserved.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gttwsi_core.c,v 1.10 2019/12/25 14:08:47 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gttwsi_core.c,v 1.11 2020/01/11 22:21:25 thorpej Exp $");
 #include "locators.h"
 
 #include <sys/param.h>
@@ -342,7 +342,7 @@
                if (control & CONTROL_IFLG)
                        break;
                if (!(flags & I2C_F_POLL)) {
-                       error = cv_timedwait_sig(&sc->sc_cv, &sc->sc_mtx, hz);
+                       error = cv_timedwait(&sc->sc_cv, &sc->sc_mtx, hz);
                        if (error)
                                break;
                } else {



Home | Main Index | Thread Index | Old Index