svn commit: r246414 - projects/calloutng/sys/kern
Davide Italiano
davide at FreeBSD.org
Wed Feb 6 15:55:42 UTC 2013
Author: davide
Date: Wed Feb 6 15:55:41 2013
New Revision: 246414
URL: http://svnweb.freebsd.org/changeset/base/246414
Log:
Don't ask callout to align with hardclock() calls when there's no need.
Reported by: mav
Modified:
projects/calloutng/sys/kern/kern_resource.c
Modified: projects/calloutng/sys/kern/kern_resource.c
==============================================================================
--- projects/calloutng/sys/kern/kern_resource.c Wed Feb 6 15:23:55 2013 (r246413)
+++ projects/calloutng/sys/kern/kern_resource.c Wed Feb 6 15:55:41 2013 (r246414)
@@ -646,7 +646,7 @@ lim_cb(void *arg)
}
if ((p->p_flag & P_WEXIT) == 0)
callout_reset_sbt(&p->p_limco, SBT_1S, 0,
- lim_cb, p, C_PREL(1) | C_HARDCLOCK);
+ lim_cb, p, C_PREL(1));
}
int
@@ -699,7 +699,7 @@ kern_proc_setrlimit(struct thread *td, s
if (limp->rlim_cur != RLIM_INFINITY &&
p->p_cpulimit == RLIM_INFINITY)
callout_reset_sbt(&p->p_limco, SBT_1S, 0,
- lim_cb, p, C_PREL(1) | C_HARDCLOCK);
+ lim_cb, p, C_PREL(1));
p->p_cpulimit = limp->rlim_cur;
break;
case RLIMIT_DATA:
More information about the svn-src-projects
mailing list