summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_resource.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2008-03-16 21:32:20 +0000
committerpjd <pjd@FreeBSD.org>2008-03-16 21:32:20 +0000
commit4ef010fa268dc6bcc40905f1ac5c17c21a92a5ed (patch)
tree05512efda701c50a44bf58531ac773a28a115470 /sys/kern/kern_resource.c
parent912387399968b156ccbcaafdc3ea3c14379b8bb9 (diff)
downloadFreeBSD-src-4ef010fa268dc6bcc40905f1ac5c17c21a92a5ed.zip
FreeBSD-src-4ef010fa268dc6bcc40905f1ac5c17c21a92a5ed.tar.gz
Whitespace cleanups.
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r--sys/kern/kern_resource.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index f1d1d0b..6a867a6 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -264,7 +264,7 @@ donice(struct thread *td, struct proc *p, int n)
n = PRIO_MAX;
if (n < PRIO_MIN)
n = PRIO_MIN;
- if (n < p->p_nice && priv_check(td, PRIV_SCHED_SETPRIORITY) != 0)
+ if (n < p->p_nice && priv_check(td, PRIV_SCHED_SETPRIORITY) != 0)
return (EACCES);
PROC_SLOCK(p);
sched_nice(p, n);
@@ -332,7 +332,7 @@ rtprio_thread(struct thread *td, struct rtprio_thread_args *uap)
* due to a CPU-bound normal process). Fix me! XXX
*/
#if 0
- if (RTP_PRIO_IS_REALTIME(rtp.type)) {
+ if (RTP_PRIO_IS_REALTIME(rtp.type)) {
#else
if (rtp.type != RTP_PRIO_NORMAL) {
#endif
@@ -403,7 +403,7 @@ rtprio(td, uap)
/*
* Return OUR priority if no pid specified,
* or if one is, report the highest priority
- * in the process. There isn't much more you can do as
+ * in the process. There isn't much more you can do as
* there is only room to return a single priority.
* Note: specifying our own pid is not the same
* as leaving it zero.
@@ -890,13 +890,13 @@ calcru1(struct proc *p, struct rusage_ext *ruxp, struct timeval *up,
if (su < ruxp->rux_su)
su = ruxp->rux_su;
} else if (tu + 3 > ruxp->rux_tu || 101 * tu > 100 * ruxp->rux_tu) {
- /*
+ /*
* When we calibrate the cputicker, it is not uncommon to
* see the presumably fixed frequency increase slightly over
* time as a result of thermal stabilization and NTP
* discipline (of the reference clock). We therefore ignore
* a bit of backwards slop because we expect to catch up
- * shortly. We use a 3 microsecond limit to catch low
+ * shortly. We use a 3 microsecond limit to catch low
* counts and a 1% limit for high counts.
*/
uu = ruxp->rux_uu;
@@ -1339,6 +1339,6 @@ chgsbsize(uip, hiwat, to, max)
if (uip->ui_sbsize < 0)
printf("negative sbsize for uid = %d\n", uip->ui_uid);
}
- *hiwat = to;
- return (1);
+ *hiwat = to;
+ return (1);
}
OpenPOWER on IntegriCloud