ref: 853f92087bd12f37771f326d31a8ccdfdc77096b
parent: 80216ac2efb13340464344cfca1b3c8aeec5941b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Mar 28 17:34:02 EDT 2024
kernel: bring back cooperating scheduling In commit 63beb8c354aeb446fe5cd1c75bbdaeef6d11612e (which fixed some bugs in the efd scheduling code), the cooperating scheduling got removed accidentially. This was not the intention, so bring it back.
--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -458,6 +458,8 @@
splx(s);
return;
case 0:
+ if(up != p && (p->wired == nil || p->wired == MACHP(m->machno)))
+ m->readied = p; /* group scheduling */
pri = reprioritize(p);
break;
case 1:
--
⑨