Subject: CVS commit: src/sys/arch/i386
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 04/30/2004 02:05:43
Module Name:	src
Committed By:	lukem
Date:		Fri Apr 30 02:05:43 UTC 2004

Modified Files:
	src/sys/arch/i386/conf: files.i386
	src/sys/arch/i386/i386: cpu.c est.c identcpu.c machdep.c
	src/sys/arch/i386/include: cpu.h

Log Message:
Integrate support for Enhanced SpeedStep Technology (est) that
Michael Eriksson posted to port-i386 on 20031102, with various
modifications by me to work in the new sysctl(9) framework.

The code is enabled with 'options ENHANCED_SPEEDSTEP', and if
the CPU supports EST the following sysctl(8) nodes appear
(with the values that a Dell Inspiron 8600 + WUXGA with a
1.4GHz Pentium M CPU supports):
	machdep.est.cpu_brand = Intel(R) Pentium(R) M processor 1400MHz
	machdep.est.frequency.target = 1400
	machdep.est.frequency.current = 1400
	machdep.est.frequency.available = 1400 1200 1000 800 600

If EST support isn't available, the "machdep.est" sysctl sub-MIB
is not created.

Once we have a more general "CPU frequency" control API we can
migrate this code to using that.

Thanks to Michael Erikkson for providing this code!


To generate a diff of this commit:
cvs rdiff -r1.255 -r1.256 src/sys/arch/i386/conf/files.i386
cvs rdiff -r1.18 -r1.19 src/sys/arch/i386/i386/cpu.c
cvs rdiff -r1.1 -r1.2 src/sys/arch/i386/i386/est.c
cvs rdiff -r1.12 -r1.13 src/sys/arch/i386/i386/identcpu.c
cvs rdiff -r1.552 -r1.553 src/sys/arch/i386/i386/machdep.c
cvs rdiff -r1.113 -r1.114 src/sys/arch/i386/include/cpu.h

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