summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-02-17 02:19:58 +0000
committerjeff <jeff@FreeBSD.org>2003-02-17 02:19:58 +0000
commitaa384c931fc62f42246713400c2b6e5b5d446165 (patch)
tree2a35dbab1876c5ce91132e41356bc345d69fcd07 /sys/amd64
parentd6241fff35979f7d7518ca96ece7f192829bbf35 (diff)
downloadFreeBSD-src-aa384c931fc62f42246713400c2b6e5b5d446165.zip
FreeBSD-src-aa384c931fc62f42246713400c2b6e5b5d446165.tar.gz
- Move ke_sticks, ke_iticks, ke_uticks, ke_uu, ke_su, and ke_iu back into
the proc. These counters are only examined through calcru. Submitted by: davidxu Tested on: x86, alpha, UP/SMP
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 54c4af8..2c21983 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -264,7 +264,7 @@ trap(frame)
!(PCPU_GET(curpcb)->pcb_flags & PCB_VM86CALL))) {
/* user trap */
- sticks = td->td_kse->ke_sticks;
+ sticks = td->td_sticks;
td->td_frame = &frame;
if (td->td_ucred != p->p_ucred)
cred_update_thread(td);
@@ -957,7 +957,7 @@ syscall(frame)
KASSERT((td->td_kse != NULL), ("syscall: kse/thread UNLINKED"));
KASSERT((td->td_kse->ke_thread == td), ("syscall:kse/thread mismatch"));
- sticks = td->td_kse->ke_sticks;
+ sticks = td->td_sticks;
td->td_frame = &frame;
if (td->td_ucred != p->p_ucred)
cred_update_thread(td);
OpenPOWER on IntegriCloud