shithub: riscv

Download patch

ref: 4d5947062ddbe9da6bb3a15d988c4cf5d61b035d
parent: 9bd1e7cdd124ae5e75566c1daf19fc8b72b4710f
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;
--