Module Name: src
Committed By: thorpej
Date: Sat Jan 11 22:21:26 UTC 2020
Modified Files:
src/sys/dev/i2c: gttwsi_core.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/gttwsi_core.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/i2c/gttwsi_core.c
diff -u src/sys/dev/i2c/gttwsi_core.c:1.10 src/sys/dev/i2c/gttwsi_core.c:1.11
--- src/sys/dev/i2c/gttwsi_core.c:1.10 Wed Dec 25 14:08:47 2019
+++ src/sys/dev/i2c/gttwsi_core.c Sat Jan 11 22:21:25 2020
@@ -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 @@ gttwsi_wait(struct gttwsi_softc *sc, uin
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 {