Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2012 21:47:08 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r244718 - projects/calloutng/sys/kern
Message-ID:  <201212262147.qBQLl8XJ047921@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212262147.qBQLl8XJ047921>