1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00

Use the global 'nowake' variable for tsleep which doesn't require wakeup.

Suggested and ok jsg@
This commit is contained in:
mglocker
2026-05-23 11:10:57 +00:00
parent d477f7457f
commit 3031afd3ce
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: ietp.c,v 1.4 2026/05/23 05:11:32 mglocker Exp $ */
/* $OpenBSD: ietp.c,v 1.5 2026/05/23 11:10:57 mglocker Exp $ */
/*
* Elan I2C Touchpad driver
*
@@ -334,7 +334,7 @@ ietp_sleep(struct ietp_softc *sc, int ms)
if (cold)
delay(ms * 1000);
else
tsleep_nsec(sc, PWAIT, "ietp", MSEC_TO_NSEC(ms));
tsleep_nsec(&nowake, PWAIT, "ietp", MSEC_TO_NSEC(ms));
}
int
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: ihidev.c,v 1.42 2026/05/23 05:11:32 mglocker Exp $ */
/* $OpenBSD: ihidev.c,v 1.43 2026/05/23 11:10:57 mglocker Exp $ */
/*
* HID-over-i2c driver
*
@@ -300,7 +300,7 @@ ihidev_sleep(struct ihidev_softc *sc, int ms)
if (cold)
delay(ms * 1000);
else
tsleep_nsec(sc, PWAIT, "ihidev", MSEC_TO_NSEC(ms));
tsleep_nsec(&nowake, PWAIT, "ihidev", MSEC_TO_NSEC(ms));
}
int
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: sambat.c,v 1.2 2026/05/22 21:01:06 mglocker Exp $ */
/* $OpenBSD: sambat.c,v 1.3 2026/05/23 11:10:57 mglocker Exp $ */
/*
* Copyright (c) 2026 Marcus Glocker <mglocker@openbsd.org>
@@ -276,7 +276,7 @@ sambat_mbox_write(struct sambat_softc *sc, uint8_t hi, uint8_t lo,
if (cold)
delay(5000);
else
tsleep_nsec(sc, PWAIT, "sambat", USEC_TO_NSEC(5000));
tsleep_nsec(&nowake, PWAIT, "sambat", USEC_TO_NSEC(5000));
return 0;
}