diff options
author | phk <phk@FreeBSD.org> | 2006-02-08 08:09:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-02-08 08:09:17 +0000 |
commit | 74f8e63a104485f17205e2a3e446e00f968c324c (patch) | |
tree | dcc7f358367ea74ccf47cede57e272875e9b589d /sys/ia64/ia32 | |
parent | 4d8070a25b5c7585b416e8a3db16fc15f2e3cd13 (diff) | |
download | FreeBSD-src-74f8e63a104485f17205e2a3e446e00f968c324c.zip FreeBSD-src-74f8e63a104485f17205e2a3e446e00f968c324c.tar.gz |
Simplify system time accounting for profiling.
Rename struct thread's td_sticks to td_pticks, we will need the
other name for more appropriately named use shortly. Reduce it
from uint64_t to u_int.
Clear td_pticks whenever we enter the kernel instead of recording
its value as reference for userret(). Use the absolute value of
td->pticks in userret() and eliminate third argument.
Diffstat (limited to 'sys/ia64/ia32')
-rw-r--r-- | sys/ia64/ia32/ia32_trap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/ia64/ia32/ia32_trap.c b/sys/ia64/ia32/ia32_trap.c index d93722e..29357f1 100644 --- a/sys/ia64/ia32/ia32_trap.c +++ b/sys/ia64/ia32/ia32_trap.c @@ -205,7 +205,6 @@ ia32_trap(int vector, struct trapframe *tf) struct thread *td; uint64_t ucode; int sig; - u_int sticks; ksiginfo_t ksi; KASSERT(TRAPF_USERMODE(tf), ("%s: In kernel mode???", __func__)); @@ -215,7 +214,7 @@ ia32_trap(int vector, struct trapframe *tf) td = curthread; td->td_frame = tf; - sticks = td->td_sticks; + td->td_pticks = 0; p = td->td_proc; if (td->td_ucred != p->p_ucred) cred_update_thread(td); @@ -297,7 +296,7 @@ ia32_trap(int vector, struct trapframe *tf) trapsignal(td, &ksi); out: - userret(td, tf, sticks); + userret(td, tf); mtx_assert(&Giant, MA_NOTOWNED); do_ast(tf); } |