Subject: CVS commit: src/sys/arch/x86
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 03/15/2007 00:03:25
Module Name:	src
Committed By:	xtraeme
Date:		Thu Mar 15 00:03:25 UTC 2007

Modified Files:
	src/sys/arch/x86/conf: files.x86
	src/sys/arch/x86/include: cpuvar.h
Added Files:
	src/sys/arch/x86/x86: p4tcc.c

Log Message:
Add a driver for the Pentium 4 and later models with feature TM
(Thermal Monitor).

This driver will throttle the CPU clock modulation, saving some
power, also known as ODMC (On Demand Modulation Clock).

The processor can change from 12.5% to 100% (there are two erratas,
so two levels might be skipped in the worst case).

If supported, you'll see the following sysctl sub-tree:

machdep.p4tcc.throttling.target: CPU Clock throttling state (0 = lowest, 7 highest)
machdep.p4tcc.throttling.current: current CPU throttling state
machdep.p4tcc.throttling.available: list of CPU Clock throttling states

machdep.p4tcc.throttling.target = 2
machdep.p4tcc.throttling.current = 2
machdep.p4tcc.throttling.available = 7 6 5 4 3 2

Adapted from OpenBSD/FreeBSD.


To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 src/sys/arch/x86/conf/files.x86
cvs rdiff -r1.8 -r1.9 src/sys/arch/x86/include/cpuvar.h
cvs rdiff -r0 -r1.1 src/sys/arch/x86/x86/p4tcc.c

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