diff options
author | John Baldwin <jhb@FreeBSD.org> | 2000-09-12 18:57:59 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2000-09-12 18:57:59 +0000 |
commit | 77044cb6d93caddbfeb10725fb02d3eaafe1c7c6 (patch) | |
tree | fc28d92dd94a6bd6372555c13a37246b321d004f /sys/kern/kern_clock.c | |
parent | bbbb2579b4e853bf101abefcf23f1b61204ae3b0 (diff) | |
download | src-test2-77044cb6d93caddbfeb10725fb02d3eaafe1c7c6.tar.gz src-test2-77044cb6d93caddbfeb10725fb02d3eaafe1c7c6.zip |
Notes
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 33eef3ca3046..bc6bf0636a51 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -389,20 +389,18 @@ statclock(frame) } pscnt = psdiv; - if (p != idleproc) { - schedclock(p); - - /* Update resource usage integrals and maximums. */ - if ((pstats = p->p_stats) != NULL && - (ru = &pstats->p_ru) != NULL && - (vm = p->p_vmspace) != NULL) { - ru->ru_ixrss += pgtok(vm->vm_tsize); - ru->ru_idrss += pgtok(vm->vm_dsize); - ru->ru_isrss += pgtok(vm->vm_ssize); - rss = pgtok(vmspace_resident_count(vm)); - if (ru->ru_maxrss < rss) - ru->ru_maxrss = rss; - } + schedclock(p); + + /* Update resource usage integrals and maximums. */ + if ((pstats = p->p_stats) != NULL && + (ru = &pstats->p_ru) != NULL && + (vm = p->p_vmspace) != NULL) { + ru->ru_ixrss += pgtok(vm->vm_tsize); + ru->ru_idrss += pgtok(vm->vm_dsize); + ru->ru_isrss += pgtok(vm->vm_ssize); + rss = pgtok(vmspace_resident_count(vm)); + if (ru->ru_maxrss < rss) + ru->ru_maxrss = rss; } } |