From owner-cvs-sys Fri Oct 25 06:02:08 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA19491 for cvs-sys-outgoing; Fri, 25 Oct 1996 06:02:08 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA19460; Fri, 25 Oct 1996 06:01:58 -0700 (PDT) Date: Fri, 25 Oct 1996 06:01:58 -0700 (PDT) From: Bruce Evans Message-Id: <199610251301.GAA19460@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/i386/include clock.h src/sys/kern kern_clock.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/10/25 06:01:58 Modified: sys/i386/include clock.h sys/kern kern_clock.c Log: Improved biasing of i586 clock by adjusting for hardclock() latency. I decided to do this for every hardclock() call instead of lazily in microtime(). The lazy method is simpler but has more overhead if microtime() is called a lot. CPU_THISTICKLEN() is now a no-op and should probably go away. Previously it did nothing directly but had the side effect of setting i586_last_tick for CPU_CLOCKUPDATE() and i586_avg_tick for debugging. CPU_CLOCKUPDATE() now uses a better method and i586_avg_tick is too much trouble to maintain. Reduced nesting of #includes in the usual case. Increased nesting of #includes when CLOCK_HAIR is defined. This is a kludge to get typedefs for inline functions only when the inline functions are used. Normally only kern_clock.c defines this. kern_clock.c can't include the i386 headers directly. Removed unused LOCORE support. Revision Changes Path 1.20 +62 -51 src/sys/i386/include/clock.h 1.28 +2 -1 src/sys/kern/kern_clock.c