* Atomically perform a rufetch and a calcru together. * Consumers, can safely assume the calcru is executed only once * rufetch is completed. */
| 1183 | * rufetch is completed. |
| 1184 | */ |
| 1185 | void |
| 1186 | rufetchcalc(struct proc *p, struct rusage *ru, struct timeval *up, |
| 1187 | struct timeval *sp) |
| 1188 | { |
| 1189 | |
| 1190 | PROC_STATLOCK(p); |
| 1191 | rufetch(p, ru); |
| 1192 | calcru(p, up, sp); |
| 1193 | PROC_STATUNLOCK(p); |
| 1194 | } |
| 1195 | |
| 1196 | /* |
| 1197 | * Allocate a new resource limits structure and initialize its |
no test coverage detected