Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2017 08:05:47 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r324718 - stable/11/sys/kern
Message-ID:  <201710180805.v9I85lKP018338@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Oct 18 08:05:46 2017
New Revision: 324718
URL: https://svnweb.freebsd.org/changeset/base/324718

Log:
  MFC r324528:
  In tc_windup(), do not re-calculate bintime.

Modified:
  stable/11/sys/kern/kern_tc.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_tc.c
==============================================================================
--- stable/11/sys/kern/kern_tc.c	Wed Oct 18 07:39:21 2017	(r324717)
+++ stable/11/sys/kern/kern_tc.c	Wed Oct 18 08:05:46 2017	(r324718)
@@ -1417,10 +1417,8 @@ tc_windup(struct bintime *new_boottimebin)
 		if (bt.sec != t)
 			th->th_boottime.sec += bt.sec - t;
 	}
-	th->th_bintime = th->th_offset;
-	bintime_add(&th->th_bintime, &th->th_boottime);
 	/* Update the UTC timestamps used by the get*() functions. */
-	/* XXX shouldn't do this here.  Should force non-`get' versions. */
+	th->th_bintime = bt;
 	bintime2timeval(&bt, &th->th_microtime);
 	bintime2timespec(&bt, &th->th_nanotime);
 



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