diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-01-11 21:26:42 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-01-11 21:26:42 +0100 |
| commit | 361b65e4df0b4a3562a6e57b0f7b8009c59c3f2b (patch) | |
| tree | ec6005206e87e2bd304f0d517344ca3832bbac7e | |
| parent | dfda1cc878fac93d1391460354c4936806b7dc50 (diff) | |
| download | plan9front-361b65e4df0b4a3562a6e57b0f7b8009c59c3f2b.tar.xz | |
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.
| -rw-r--r-- | sys/src/9/port/portdat.h | 1 | ||||
| -rw-r--r-- | sys/src/9/port/proc.c | 3 |
2 files changed, 1 insertions, 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++){ |
