From aa384c931fc62f42246713400c2b6e5b5d446165 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 17 Feb 2003 02:19:58 +0000 Subject: - 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 --- sys/kern/subr_trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/subr_trap.c') diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index eec2ae6..47e8472 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -124,7 +124,7 @@ userret(td, frame, oticks) quad_t ticks; mtx_lock_spin(&sched_lock); - ticks = ke->ke_sticks - oticks; + ticks = td->td_sticks - oticks; mtx_unlock_spin(&sched_lock); addupc_task(ke, TRAPF_PC(frame), (u_int)ticks * psratio); } @@ -175,7 +175,7 @@ ast(struct trapframe *framep) */ mtx_lock_spin(&sched_lock); ke = td->td_kse; - sticks = ke->ke_sticks; + sticks = td->td_sticks; flags = ke->ke_flags; sflag = p->p_sflag; p->p_sflag &= ~(PS_ALRMPEND | PS_NEEDSIGCHK | PS_PROFPEND | PS_XCPU); -- cgit v1.1