shithub: riscv

Download patch

ref: 18039c83c099e0b58459118c84e3292509417653
parent: 8a4a2dea70aa77475a50968f4c5bd6cdab5d2fb1
author: cinap_lenrek <[email protected]>
date: Sun Apr 7 12:19:36 EDT 2024

kernel: remove unused Proc.lockwait Lock pointer

--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -749,19 +749,20 @@
 	Chan	*slash;
 	Chan	*dot;
 
+	Note	*lastnote;
 	Note	*note[NNOTE];
 	short	nnote;
 	short	notified;	/* sysnoted is due */
-	Note	*lastnote;
 	int	(*notify)(void*, char*);
 
-	Lock	*lockwait;
+	Mach	*wired;
+	Mach	*mp;		/* machine this process last ran on */
+
 	Lock	*lastlock;	/* debugging */
 	Lock	*lastilock;	/* debugging */
 
-	Mach	*wired;
-	Mach	*mp;		/* machine this process last ran on */
 	int	nlocks;		/* number of locks held by proc */
+
 	ulong	delaysched;
 	ulong	priority;	/* priority level */
 	ulong	basepri;	/* base priority level */