ref: 361b65e4df0b4a3562a6e57b0f7b8009c59c3f2b
parent: dfda1cc878fac93d1391460354c4936806b7dc50
author: cinap_lenrek <[email protected]>
date: Sat Jan 11 16:26:42 EST 2020
kernel: remove relics of CPU 'load balancing' policy in scheduler (thanks Robert Ransom) This code was deleted from Plan 9 before the 9front repo began. Proc.movetime was used by it, but has never been referenced in 9front.
--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -755,7 +755,6 @@
ulong lastupdate;
uchar yield; /* non-zero if the process just did a sleep(0) */
ulong readytime; /* time process came ready */
- ulong movetime; /* last time process switched processors */
int preempted; /* true if this process hasn't finished the interrupt
* that last preempted it
*/
--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -525,8 +525,7 @@
loop:
/*
* find a process that last ran on this processor (affinity),
- * or one that hasn't moved in a while (load balancing). Every
- * time around the loop affinity goes down.
+ * or one that can be moved to this processor.
*/
spllo();
for(i = 0;; i++){