git: 9front

Download patch

ref: 5deae3fbb53dc94ce084a6d15e9bc5cf421f0d6f
parent: 3d164d274c71b7925f717ab8017369601f94ce3b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 23 18:00:46 EDT 2025

kernel: fix taslocks: Edf times are in µs(), not nanoseconds. d'oh.

--- a/sys/src/9/port/taslock.c
+++ b/sys/src/9/port/taslock.c
@@ -67,7 +67,7 @@
 				 */
 				print("inversion %#p pc %#p proc %lud held by pc %#p proc %lud\n",
 					l, pc, up ? up->pid : 0, l->pc, l->p ? l->p->pid : 0);
-				up->edf->d = todget(nil);	/* yield to process with lock */
+				up->edf->d = µs();	/* yield to process with lock */
 			}
 			if(i++ > 100000000){
 				i = 0;
--