From owner-freebsd-current Thu Mar 28 4: 5:25 2002 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 25C3837B417 for ; Thu, 28 Mar 2002 04:05:22 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.2/8.12.2) with ESMTP id g2SC51e7017302; Thu, 28 Mar 2002 13:05:01 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Kris Kennaway Cc: Ollivier Robert , "FreeBSD Current Users' list" Subject: Re: Time counter broken? In-Reply-To: Your message of "Thu, 28 Mar 2002 03:47:47 PST." <20020328034747.B98857@xor.obsecurity.org> Date: Thu, 28 Mar 2002 13:05:01 +0100 Message-ID: <17301.1017317101@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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