summaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2004-10-05 18:51:11 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2004-10-05 18:51:11 +0000
commit78c85e8dfc1c4a90a3ecb51acf35c33fe1faf331 (patch)
tree61af271e7225bd0154aaa08a967c5ce027c7bc2a /sys/kern/kern_synch.c
parenta55db2b6e63b4d36024857d89a7ab59747f17d97 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 13749e460f58..52863e39b966 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -302,8 +302,8 @@ mi_switch(int flags, struct thread *newtd)
* process was running, and add that to its total so far.
*/
binuptime(&new_switchtime);
- bintime_add(&p->p_runtime, &new_switchtime);
- bintime_sub(&p->p_runtime, PCPU_PTR(switchtime));
+ bintime_add(&p->p_rux.rux_runtime, &new_switchtime);
+ bintime_sub(&p->p_rux.rux_runtime, PCPU_PTR(switchtime));
td->td_generation++; /* bump preempt-detect counter */
@@ -322,7 +322,7 @@ mi_switch(int flags, struct thread *newtd)
* over max, arrange to kill the process in ast().
*/
if (p->p_cpulimit != RLIM_INFINITY &&
- p->p_runtime.sec > p->p_cpulimit) {
+ p->p_rux.rux_runtime.sec > p->p_cpulimit) {
p->p_sflag |= PS_XCPU;
td->td_flags |= TDF_ASTPENDING;
}