1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 15:23:33 +02:00

Use the real sc address for tsleep identification instead of the stack

pointer address.

ok deraadt@
This commit is contained in:
mglocker
2026-05-23 05:11:32 +00:00
parent 1957873d20
commit 19a8be4fa5
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: ietp.c,v 1.3 2024/08/18 03:25:04 deraadt Exp $ */
/* $OpenBSD: ietp.c,v 1.4 2026/05/23 05:11:32 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(sc, PWAIT, "ietp", MSEC_TO_NSEC(ms));
}
int
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: ihidev.c,v 1.41 2025/10/28 15:36:46 jcs Exp $ */
/* $OpenBSD: ihidev.c,v 1.42 2026/05/23 05:11:32 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(sc, PWAIT, "ihidev", MSEC_TO_NSEC(ms));
}
int