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
@ -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…
x
Reference in New Issue
Block a user