uvm_loadav: don't recompute schedstate_percpu.spc_nrun
authorcheloha <cheloha@openbsd.org>
Wed, 2 Aug 2023 13:54:45 +0000 (13:54 +0000)
committercheloha <cheloha@openbsd.org>
Wed, 2 Aug 2023 13:54:45 +0000 (13:54 +0000)
commit3a83ea1172901dcae9c8471fca215f772b015d60
tree1a87823558af06609f65ecdef04622147fa47e71
parent11ace47b0d43b67189bbbfe804d6bcd9a78416fa
uvm_loadav: don't recompute schedstate_percpu.spc_nrun

We track the nrun value in schedstate_percpu.spc_nrun.  There is no
reason to walk the allproc list to recompute it.

Prompted by claudio@.

Thread: https://marc.info/?l=openbsd-tech&m=169059099426049&w=2

ok claudio@
sys/uvm/uvm_meter.c