mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Don't try to account for the partial quantum unless the process is
curproc. This only makes any difference on SMP, where we used a (potentially very bogus) switchtime from our own CPU to calculate resource usage on another CPU. This should remove some if not all calcru() related warnings on SMP. Approved by: jkh
This commit is contained in:
parent
1e6c9556ad
commit
693e27d473
1 changed files with 0 additions and 4 deletions
|
|
@ -509,11 +509,7 @@ calcru(p, up, sp, ip)
|
|||
}
|
||||
|
||||
tu = p->p_runtime;
|
||||
#ifdef SMP
|
||||
if (p->p_oncpu != 0xff) {
|
||||
#else
|
||||
if (p == curproc) {
|
||||
#endif
|
||||
/*
|
||||
* Adjust for the current time slice. This is actually fairly
|
||||
* important since the error here is on the order of a time
|
||||
|
|
|
|||
Loading…
Reference in a new issue