Subject: CVS commit: syssrc [sommerfeld_i386mp_1]
To: None <source-changes@netbsd.org>
From: Bill Sommerfeld <sommerfeld@netbsd.org>
List: source-changes
Date: 05/27/2001 01:13:11
Module Name:	syssrc
Committed By:	sommerfeld
Date:		Sat May 26 22:13:11 UTC 2001

Modified Files:
	syssrc/sys/arch/i386/conf [sommerfeld_i386mp_1]: files.i386
	syssrc/sys/arch/i386/i386 [sommerfeld_i386mp_1]: ipifuncs.c lapic.c
	    machdep.c
	syssrc/sys/arch/i386/include [sommerfeld_i386mp_1]: cpu.h intr.h
	syssrc/sys/arch/i386/isa [sommerfeld_i386mp_1]: clock.c
Added Files:
	syssrc/sys/arch/i386/i386 [sommerfeld_i386mp_1]: tsc_microtime.c

Log Message:
Implement MP-synchronzed microtime(), based on Jason Thorpe's port of
Dave Mills's cycle-counter-based microtime.

XXX We need to figure out how to deal with processors where the cycle
counter speed varies.  We don't have a whole lot of alternatives; we
could only use this on multiprocessors, which are less likely to
throttle the clock to save power.

The local apic timer runs at a fixed frequency, but it's
count-down-to-zero, not the count-up-forever type of timer which the
Mills code expects.

This also does not solve the problem of microtime on 486-based
multiprocessors..


To generate a diff of this commit:
cvs rdiff -r1.147.2.12 -r1.147.2.13 syssrc/sys/arch/i386/conf/files.i386
cvs rdiff -r1.1.2.9 -r1.1.2.10 syssrc/sys/arch/i386/i386/ipifuncs.c
cvs rdiff -r1.1.2.13 -r1.1.2.14 syssrc/sys/arch/i386/i386/lapic.c
cvs rdiff -r1.376.2.23 -r1.376.2.24 syssrc/sys/arch/i386/i386/machdep.c
cvs rdiff -r0 -r1.1.2.1 syssrc/sys/arch/i386/i386/tsc_microtime.c
cvs rdiff -r1.59.2.23 -r1.59.2.24 syssrc/sys/arch/i386/include/cpu.h
cvs rdiff -r1.12.10.14 -r1.12.10.15 syssrc/sys/arch/i386/include/intr.h
cvs rdiff -r1.63.2.4 -r1.63.2.5 syssrc/sys/arch/i386/isa/clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.