mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-09 16:01:19 +01: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57228
@ -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 New Issue
Block a user