Module Name: src
Committed By: thorpej
Date: Wed Jan 15 06:09:37 UTC 2020
Modified Files:
src/sys/dev/i2c: at24cxx.c
Log Message:
tsleep -> kpause
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/i2c/at24cxx.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/at24cxx.c
diff -u src/sys/dev/i2c/at24cxx.c:1.35 src/sys/dev/i2c/at24cxx.c:1.36
--- src/sys/dev/i2c/at24cxx.c:1.35 Mon Dec 23 15:51:50 2019
+++ src/sys/dev/i2c/at24cxx.c Wed Jan 15 06:09:36 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: at24cxx.c,v 1.35 2019/12/23 15:51:50 thorpej Exp $ */
+/* $NetBSD: at24cxx.c,v 1.36 2020/01/15 06:09:36 thorpej Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.35 2019/12/23 15:51:50 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.36 2020/01/15 06:09:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -392,8 +392,8 @@ seeprom_wait_idle(struct seeprom_softc *
if (error == 0)
break;
- rv = tsleep(sc, PRIBIO | PCATCH, "seepromwr", timeout);
- if (rv != EWOULDBLOCK)
+ rv = kpause("seepromwr", true, timeout, NULL);
+ if (rv != EWOULDBLOCK && rv != 0)
return (rv);
}