|
Lines 281-286
Link Here
|
| 281 |
rufetch(targetp, &ru); |
281 |
rufetch(targetp, &ru); |
| 282 |
runtime = targetp->p_rux.rux_runtime; |
282 |
runtime = targetp->p_rux.rux_runtime; |
| 283 |
PROC_STATUNLOCK(targetp); |
283 |
PROC_STATUNLOCK(targetp); |
|
|
284 |
critical_enter(); |
| 285 |
if (curthread->td_proc == targetp) |
| 286 |
runtime += cpu_ticks() - PCPU_GET(switchtime); |
| 287 |
critical_exit(); |
| 284 |
cputick2timespec(runtime, ats); |
288 |
cputick2timespec(runtime, ats); |
| 285 |
} |
289 |
} |
| 286 |
|
290 |
|