summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_resource.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-02-22 16:58:48 +0000
committerjhb <jhb@FreeBSD.org>2006-02-22 16:58:48 +0000
commitddd6459377b5f9b40f17d906bc4de9a739ab2f52 (patch)
treea611c49c3ee837d1abe725d0caa3a2cd8ba804f7 /sys/kern/kern_resource.c
parent87a2fb7b15d822c809a17de7ba89a4a2f1583a2a (diff)
downloadFreeBSD-src-ddd6459377b5f9b40f17d906bc4de9a739ab2f52.zip
FreeBSD-src-ddd6459377b5f9b40f17d906bc4de9a739ab2f52.tar.gz
Various style and comment fixes.
Submitted by: bde
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r--sys/kern/kern_resource.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index 7940da7..16d1d5c 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -695,8 +695,8 @@ getrlimit(td, uap)
}
/*
- * Transform the running time and tick information for childern of proc p
- * into user, system, and interrupt time usage.
+ * Transform the running time and tick information for children of proc p
+ * into user and system time usage.
*/
void
calccru(p, up, sp)
@@ -710,15 +710,15 @@ calccru(p, up, sp)
}
/*
- * Transform the running time and tick information in proc p into user,
- * system, and interrupt time usage. If appropriate, include the current
- * time slice on this CPU.
+ * Transform the running time and tick information in proc p into user
+ * and system time usage. If appropriate, include the current time slice
+ * on this CPU.
*/
void
calcru(struct proc *p, struct timeval *up, struct timeval *sp)
{
- struct thread *td;
struct rusage_ext rux;
+ struct thread *td;
uint64_t u;
PROC_LOCK_ASSERT(p, MA_OWNED);
@@ -811,8 +811,7 @@ calcru1(struct proc *p, struct rusage_ext *ruxp, struct timeval *up,
KASSERT(iu >= ruxp->rux_iu,
("calcru: monotonisation botch 2"));
}
- KASSERT(uu + su + iu <= tu,
- ("calcru: monotisation botch 3"));
+ KASSERT(uu + su + iu <= tu, ("calcru: monotisation botch 3"));
#endif
ruxp->rux_uu = uu;
ruxp->rux_su = su;
OpenPOWER on IntegriCloud