Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2002 13:05:01 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Ollivier Robert <roberto@eurocontrol.fr>, "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG>
Subject:   Re: Time counter broken? 
Message-ID:  <17301.1017317101@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 28 Mar 2002 03:47:47 PST." <20020328034747.B98857@xor.obsecurity.org> 

next in thread | previous in thread | raw e-mail | index | archive | help

I think I found a mistake I made, can you try this patch please ?

Index: kern_tc.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_tc.c,v
retrieving revision 1.117
diff -u -r1.117 kern_tc.c
--- kern_tc.c	19 Mar 2002 21:24:06 -0000	1.117
+++ kern_tc.c	28 Mar 2002 12:00:13 -0000
@@ -241,7 +241,7 @@
 	 * The range is +/- 500PPM so we can multiply by about 8500
 	 * without overflowing.  4398/1024 = is very close to ideal.
 	 */
-	scale += (tc->tc_adjustment * 4398) >> 10;
+	scale += (tc->tc_adjustment * 4398) >> 11;
 	scale /= tc->tc_tweak->tc_frequency;
 	tc->tc_scale = scale * 2;
 }


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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