Module Name: src Committed By: thorpej Date: Wed Jan 15 05:56:57 UTC 2020
Modified Files: src/sys/dev/i2c: tsl256x.c Log Message: tsleep -> kpause To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/tsl256x.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/tsl256x.c diff -u src/sys/dev/i2c/tsl256x.c:1.7 src/sys/dev/i2c/tsl256x.c:1.8 --- src/sys/dev/i2c/tsl256x.c:1.7 Thu Jul 25 04:25:40 2019 +++ src/sys/dev/i2c/tsl256x.c Wed Jan 15 05:56:57 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: tsl256x.c,v 1.7 2019/07/25 04:25:40 thorpej Exp $ */ +/* $NetBSD: tsl256x.c,v 1.8 2020/01/15 05:56:57 thorpej Exp $ */ /*- * Copyright (c) 2018 Jason R. Thorpe @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tsl256x.c,v 1.7 2019/07/25 04:25:40 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tsl256x.c,v 1.8 2020/01/15 05:56:57 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -652,8 +652,7 @@ tsllux_wait_for_adcs(struct tsllux_softc delay(ms * 1000); } else { /* Round up one tick for the case where we sleep. */ - (void) tsleep(tsllux_wait_for_adcs, PWAIT, "tslluxwait", - mstohz(ms) + 1); + (void) kpause("tslluxwait", false, mstohz(ms) + 1, NULL); } return (0);