diff options
author | bde <bde@FreeBSD.org> | 1996-06-25 20:02:16 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-06-25 20:02:16 +0000 |
commit | b78ec1326fea8cfb976e7abdf10620439850a0a0 (patch) | |
tree | c03e6b6eda5a905cdc18da08c49cfe58e6af2c5b /sys/amd64/include/cpu.h | |
parent | 3d80cb8e5e226da61878d59c56b97b2aca43c535 (diff) | |
download | FreeBSD-src-b78ec1326fea8cfb976e7abdf10620439850a0a0.zip FreeBSD-src-b78ec1326fea8cfb976e7abdf10620439850a0a0.tar.gz |
trap.c:
Fixed profiling of system times. It was pre-4.4Lite and didn't support
statclocks. System times were too small by a factor of 8.
Handle deferred profiling ticks the 4.4Lite way: use addupc_task() instead
of addupc(). Call addupc_task() directly instead of using the ADDUPC()
macro.
Removed vestigial support for PROFTIMER.
switch.s:
Removed addupc().
resourcevar.h:
Removed ADDUPC() and declarations of addupc().
cpu.h:
Updated a comment. i386's never were tahoe's, and the deferred profiling
tick became (possibly) multiple ticks in 4.4Lite.
Obtained from: mostly from NetBSD
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r-- | sys/amd64/include/cpu.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index edf4342..adba748 100644 --- a/sys/amd64/include/cpu.h +++ b/sys/amd64/include/cpu.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 - * $Id: cpu.h,v 1.23 1996/04/05 03:36:23 ache Exp $ + * $Id: cpu.h,v 1.24 1996/04/07 16:44:28 bde Exp $ */ #ifndef _MACHINE_CPU_H_ @@ -83,9 +83,11 @@ #define need_resched() { want_resched = 1; aston(); } /* - * Give a profiling tick to the current process from the softclock - * interrupt. On tahoe, request an ast to send us through trap(), - * marking the proc as needing a profiling tick. + * Arrange to handle pending profiling ticks before returning to user mode. + * + * XXX this is now poorly named and implemented. It used to handle only a + * single tick and the P_OWEUPC flag served as a counter. Now there is a + * counter in the proc table and flag isn't really necessary. */ #define need_proftick(p) { (p)->p_flag |= P_OWEUPC; aston(); } |