Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Bill Sommerfeld <sommerfeld@netbsd.org>
List: source-changes
Date: 05/27/2001 16:53:25
Module Name: syssrc
Committed By: sommerfeld
Date: Sun May 27 13:53:25 UTC 2001
Modified Files:
syssrc/sys/arch/alpha/alpha: clock.c cpu.c interrupt.c microtime.c
syssrc/sys/arch/alpha/include: cpu.h
Log Message:
Assorted microtime fixes (similar to fixes I made yesterday when
porting this code to i386mp branch):
- call microset() early on each cpu so that calls to microtime()
before the first clock interrupt don't return trash. this manifested
itself as garbage runtimes in "ps" for kernel threads.
- avoid races between hardclock updating "time" and microset on a
different cpu reading it by adding a "microset_time" global which is
initialized from "time" on the primary cpu.
- call microset every hz ticks, not every hz+1 (cosmetic)
To generate a diff of this commit:
cvs rdiff -r1.30 -r1.31 syssrc/sys/arch/alpha/alpha/clock.c
cvs rdiff -r1.62 -r1.63 syssrc/sys/arch/alpha/alpha/cpu.c
cvs rdiff -r1.60 -r1.61 syssrc/sys/arch/alpha/alpha/interrupt.c
cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/alpha/alpha/microtime.c
cvs rdiff -r1.56 -r1.57 syssrc/sys/arch/alpha/include/cpu.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.