Subject: CVS commit: src/sys/arch/alpha
To: None <source-changes@NetBSD.org>
From: Izumi Tsutsui <tsutsui@netbsd.org>
List: source-changes
Date: 07/21/2007 11:59:57
Module Name:	src
Committed By:	tsutsui
Date:		Sat Jul 21 11:59:57 UTC 2007

Modified Files:
	src/sys/arch/alpha/alpha: clock.c cpu.c interrupt.c ipifuncs.c
	    mcclock.c
	src/sys/arch/alpha/conf: files.alpha
	src/sys/arch/alpha/include: cpu.h cpu_counter.h types.h
	src/sys/arch/alpha/isa: mcclock_isa.c
	src/sys/arch/alpha/jensenio: mcclock_jensenio.c
	src/sys/arch/alpha/pci: a12c.c
	src/sys/arch/alpha/tc: mcclock_ioasic.c
	src/sys/arch/alpha/tlsb: mcclock_tlsb.c
Added Files:
	src/sys/arch/alpha/alpha: clockvar.h mcclockvar.h

Log Message:
Add MI todr(9) support and timercounter(9) support with kern_cctr.c to alpha:
- use todr(9) API with MI mc146818(4) driver and remove homegrown
  todr stuff from MD alpha/clock.c and alpha/mcclock.c
- also remove obsolete cc_microtime stuff from MD code
- add ci_pcc_freq member in struct cpu_info for cpu_frequency(), and
  calibrate it with mc146818 interval clock in mcclock attachment
- call cc_init() in cpu_initclocks(9) because all alpha cpus have
  a pcc counter

Tested on DEC 3000/300 and AlphaPC 164, but not on any SMP machines yet.


To generate a diff of this commit:
cvs rdiff -r1.36 -r1.37 src/sys/arch/alpha/alpha/clock.c
cvs rdiff -r0 -r1.5 src/sys/arch/alpha/alpha/clockvar.h \
    src/sys/arch/alpha/alpha/mcclockvar.h
cvs rdiff -r1.75 -r1.76 src/sys/arch/alpha/alpha/cpu.c
cvs rdiff -r1.73 -r1.74 src/sys/arch/alpha/alpha/interrupt.c
cvs rdiff -r1.35 -r1.36 src/sys/arch/alpha/alpha/ipifuncs.c
cvs rdiff -r1.10 -r1.11 src/sys/arch/alpha/alpha/mcclock.c
cvs rdiff -r1.173 -r1.174 src/sys/arch/alpha/conf/files.alpha
cvs rdiff -r1.70 -r1.71 src/sys/arch/alpha/include/cpu.h
cvs rdiff -r1.3 -r1.4 src/sys/arch/alpha/include/cpu_counter.h
cvs rdiff -r1.36 -r1.37 src/sys/arch/alpha/include/types.h
cvs rdiff -r1.15 -r1.16 src/sys/arch/alpha/isa/mcclock_isa.c
cvs rdiff -r1.4 -r1.5 src/sys/arch/alpha/jensenio/mcclock_jensenio.c
cvs rdiff -r1.16 -r1.17 src/sys/arch/alpha/pci/a12c.c
cvs rdiff -r1.11 -r1.12 src/sys/arch/alpha/tc/mcclock_ioasic.c
cvs rdiff -r1.12 -r1.13 src/sys/arch/alpha/tlsb/mcclock_tlsb.c

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