svn commit: r233543 - in stable/9/sys: i386/conf kern
Jaakko Heinonen
jh at FreeBSD.org
Tue Mar 27 14:01:10 UTC 2012
Author: jh
Date: Tue Mar 27 14:01:09 2012
New Revision: 233543
URL: http://svn.freebsd.org/changeset/base/233543
Log:
MFC r233126:
Cast wallclock.tv_sec to uint64_t to avoid overflow in the calculation.
PR: kern/161552
Modified:
stable/9/sys/kern/kern_racct.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/amd64/include/xen/ (props changed)
stable/9/sys/boot/ (props changed)
stable/9/sys/boot/i386/efi/ (props changed)
stable/9/sys/boot/ia64/efi/ (props changed)
stable/9/sys/boot/ia64/ski/ (props changed)
stable/9/sys/boot/powerpc/boot1.chrp/ (props changed)
stable/9/sys/boot/powerpc/ofw/ (props changed)
stable/9/sys/cddl/contrib/opensolaris/ (props changed)
stable/9/sys/conf/ (props changed)
stable/9/sys/contrib/dev/acpica/ (props changed)
stable/9/sys/contrib/octeon-sdk/ (props changed)
stable/9/sys/contrib/pf/ (props changed)
stable/9/sys/contrib/x86emu/ (props changed)
stable/9/sys/fs/ (props changed)
stable/9/sys/fs/ntfs/ (props changed)
stable/9/sys/i386/conf/XENHVM (props changed)
Modified: stable/9/sys/kern/kern_racct.c
==============================================================================
--- stable/9/sys/kern/kern_racct.c Tue Mar 27 12:25:47 2012 (r233542)
+++ stable/9/sys/kern/kern_racct.c Tue Mar 27 14:01:09 2012 (r233543)
@@ -736,7 +736,8 @@ racctd(void)
mtx_lock(&racct_lock);
racct_set_locked(p, RACCT_CPU, runtime);
racct_set_locked(p, RACCT_WALLCLOCK,
- wallclock.tv_sec * 1000000 + wallclock.tv_usec);
+ (uint64_t)wallclock.tv_sec * 1000000 +
+ wallclock.tv_usec);
mtx_unlock(&racct_lock);
PROC_UNLOCK(p);
}
More information about the svn-src-stable-9
mailing list