svn commit: r244586 - projects/calloutng/sys/kern
Alexander Motin
mav at FreeBSD.org
Sat Dec 22 13:44:36 UTC 2012
Author: mav
Date: Sat Dec 22 13:44:35 2012
New Revision: 244586
URL: http://svnweb.freebsd.org/changeset/base/244586
Log:
If sync to the hardclock requested, limit minimal period to one tick.
Modified:
projects/calloutng/sys/kern/kern_timeout.c
Modified: projects/calloutng/sys/kern/kern_timeout.c
==============================================================================
--- projects/calloutng/sys/kern/kern_timeout.c Sat Dec 22 13:43:12 2012 (r244585)
+++ projects/calloutng/sys/kern/kern_timeout.c Sat Dec 22 13:44:35 2012 (r244586)
@@ -907,6 +907,8 @@ callout_reset_bt_on(struct callout *c, s
if (flags & C_ABSOLUTE) {
to_bt = bt;
} else {
+ if ((flags & C_HARDCLOCK) && bintime_cmp(&bt, &tick_bt, <))
+ bt = tick_bt;
if ((flags & C_HARDCLOCK) ||
#ifdef NO_EVENTTIMERS
bintime_cmp(&bt, &bt_timethreshold, >=)) {
More information about the svn-src-projects
mailing list