From 361b65e4df0b4a3562a6e57b0f7b8009c59c3f2b Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 11 Jan 2020 21:26:42 +0100 Subject: 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. --- sys/src/9/port/portdat.h | 1 - sys/src/9/port/proc.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h index bfa310db4..830ebd95e 100644 --- a/sys/src/9/port/portdat.h +++ b/sys/src/9/port/portdat.h @@ -755,7 +755,6 @@ struct Proc 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 */ diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c index 59fe9ecd9..30f1c592a 100644 --- a/sys/src/9/port/proc.c +++ b/sys/src/9/port/proc.c @@ -525,8 +525,7 @@ runproc(void) 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++){ -- cgit v1.2.3