git: bacb140f31aa - main - Ignore calcru: runtime went backwards for vm_guest
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Jan 2022 00:08:25 UTC
The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=bacb140f31aa64a7e73c1846834cc7065daee687 commit bacb140f31aa64a7e73c1846834cc7065daee687 Author: Simon J. Gerraty <sjg@FreeBSD.org> AuthorDate: 2022-01-15 00:07:43 +0000 Commit: Simon J. Gerraty <sjg@FreeBSD.org> CommitDate: 2022-01-15 00:07:43 +0000 Ignore calcru: runtime went backwards for vm_guest VM's have little control over CPU speed, don't make matters worse by constantly spaming console. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D33902 --- sys/kern/kern_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 793ded63d91c..527e7f16e297 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1018,7 +1018,7 @@ calcru1(struct proc *p, struct rusage_ext *ruxp, struct timeval *up, uu = ruxp->rux_uu; su = ruxp->rux_su; tu = ruxp->rux_tu; - } else { /* tu < ruxp->rux_tu */ + } else if (vm_guest == VM_GUEST_NO) { /* tu < ruxp->rux_tu */ /* * What happened here was likely that a laptop, which ran at * a reduced clock frequency at boot, kicked into high gear.