Author: avg
Date: Fri Oct 2 12:48:07 2020
New Revision: 366358
URL: https://svnweb.freebsd.org/changeset/base/366358
Log:
MFC r365396: twsi: use tsleep instead of pause for better responsiveness
Modified:
stable/12/sys/dev/iicbus/twsi/twsi.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/iicbus/twsi/twsi.c
==============================================================================
--- stable/12/sys/dev/iicbus/twsi/twsi.c Fri Oct 2 12:46:28 2020
(r366357)
+++ stable/12/sys/dev/iicbus/twsi/twsi.c Fri Oct 2 12:48:07 2020
(r366358)
@@ -506,7 +506,7 @@ twsi_transfer(device_t dev, struct iic_msg *msgs, uint
sc->control_val &= ~TWSI_CONTROL_ACK;
TWSI_WRITE(sc, sc->reg_control, sc->control_val | TWSI_CONTROL_START);
while (sc->error == 0 && sc->transfer != 0) {
- pause_sbt("twsi", SBT_1MS * 30, SBT_1MS, 0);
+ tsleep_sbt(sc, 0, "twsi", SBT_1MS * 30, SBT_1MS, 0);
}
debugf(sc->dev, "pause finish\n");
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"