kernel: only reset processor affinity p->mp when p->wired == nil

This commit is contained in:
cinap_lenrek 2024-07-23 22:29:13 +00:00
parent cbbce6b301
commit 703bcae2ed

View file

@ -417,6 +417,7 @@ queueproc(Schedq *rq, Proc *p)
* When the priority changes, we want to give
* every cpu a chance to pick up the load.
*/
if(p->wired == nil)
if(pri < 3 || pri != p->priority)
p->mp = nil;
p->priority = pri;