ref: a6eea5eccf53d3b4a669d7c04516f1b316a9c273
parent: a508b3bc836a71e2b6df6e833c995e5c422cddac
author: cinap_lenrek <cinap_lenrek@felloff.net>
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++){--
⑨