svn commit: r244718 - projects/calloutng/sys/kern
Alexander Motin
mav at FreeBSD.org
Wed Dec 26 21:47:08 UTC 2012
Author: mav
Date: Wed Dec 26 21:47:07 2012
New Revision: 244718
URL: http://svnweb.freebsd.org/changeset/base/244718
Log:
Fix thresholds calculation. For absolute precision thresholds should be
set to maximal value, not zero.
Modified:
projects/calloutng/sys/kern/kern_tc.c
Modified: projects/calloutng/sys/kern/kern_tc.c
==============================================================================
--- projects/calloutng/sys/kern/kern_tc.c Wed Dec 26 21:44:50 2012 (r244717)
+++ projects/calloutng/sys/kern/kern_tc.c Wed Dec 26 21:47:07 2012 (r244718)
@@ -1732,8 +1732,9 @@ tc_adjprecision(void)
bintime_shift(&bt_tickthreshold, tc_timeexp);
} else {
tc_timeexp = 31;
- bintime_clear(&bt_timethreshold);
- bintime_clear(&bt_tickthreshold);
+ bt_timethreshold.sec = INT_MAX;
+ bt_timethreshold.frac = ~(uint64_t)0;
+ bt_tickthreshold = bt_timethreshold;
}
}
More information about the svn-src-projects
mailing list