Module Name: src
Committed By: jruoho
Date: Fri Mar 4 05:56:50 UTC 2011
Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4/man4.x86: Makefile
Added Files:
src/share/man/man4/man4.x86: odcm.4
Log Message:
Add odcm(4).
To generate a diff of this commit:
cvs rdiff -u -r1.1298 -r1.1299 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.8 -r1.9 src/share/man/man4/man4.x86/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/man4.x86/odcm.4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1298 src/distrib/sets/lists/man/mi:1.1299
--- src/distrib/sets/lists/man/mi:1.1298 Wed Mar 2 22:25:54 2011
+++ src/distrib/sets/lists/man/mi Fri Mar 4 05:56:49 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1298 2011/03/02 22:25:54 tron Exp $
+# $NetBSD: mi,v 1.1299 2011/03/04 05:56:49 jruoho Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -1793,6 +1793,7 @@
./usr/share/man/cat4/x86/hpet.0 man-sys-catman .cat
./usr/share/man/cat4/x86/ichlpcib.0 man-sys-catman .cat
./usr/share/man/cat4/x86/ioapic.0 man-sys-catman .cat
+./usr/share/man/cat4/x86/odcm.0 man-sys-catman .cat
./usr/share/man/cat4/x86/powernow.0 man-sys-catman .cat
./usr/share/man/cat4/xbd.0 man-sys-catman .cat
./usr/share/man/cat4/xbdback.0 man-sys-catman .cat
@@ -4485,6 +4486,7 @@
./usr/share/man/html4/x86/hpet.html man-sys-htmlman html
./usr/share/man/html4/x86/ichlpcib.html man-sys-htmlman html
./usr/share/man/html4/x86/ioapic.html man-sys-htmlman html
+./usr/share/man/html4/x86/odcm.html man-sys-htmlman html
./usr/share/man/html4/x86/powernow.html man-sys-htmlman html
./usr/share/man/html4/xbd.html man-sys-htmlman html
./usr/share/man/html4/xbdback.html man-sys-htmlman html
@@ -7112,6 +7114,7 @@
./usr/share/man/man4/x86/hpet.4 man-sys-man .man
./usr/share/man/man4/x86/ichlpcib.4 man-sys-man .man
./usr/share/man/man4/x86/ioapic.4 man-sys-man .man
+./usr/share/man/man4/x86/odcm.4 man-sys-man .man
./usr/share/man/man4/x86/powernow.4 man-sys-man .man
./usr/share/man/man4/xbd.4 man-sys-man .man
./usr/share/man/man4/xbdback.4 man-sys-man .man
Index: src/share/man/man4/man4.x86/Makefile
diff -u src/share/man/man4/man4.x86/Makefile:1.8 src/share/man/man4/man4.x86/Makefile:1.9
--- src/share/man/man4/man4.x86/Makefile:1.8 Thu Feb 24 11:29:46 2011
+++ src/share/man/man4/man4.x86/Makefile Fri Mar 4 05:56:49 2011
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2011/02/24 11:29:46 jruoho Exp $
+# $NetBSD: Makefile,v 1.9 2011/03/04 05:56:49 jruoho Exp $
MAN= amdpcib.4 balloon.4 coretemp.4 est.4 \
- fwhrng.4 hpet.4 ichlpcib.4 ioapic.4 powernow.4
+ fwhrng.4 hpet.4 ichlpcib.4 ioapic.4 odcm.4 powernow.4
MANSUBDIR=/x86
Added files:
Index: src/share/man/man4/man4.x86/odcm.4
diff -u /dev/null src/share/man/man4/man4.x86/odcm.4:1.1
--- /dev/null Fri Mar 4 05:56:50 2011
+++ src/share/man/man4/man4.x86/odcm.4 Fri Mar 4 05:56:49 2011
@@ -0,0 +1,73 @@
+.\" $NetBSD: odcm.4,v 1.1 2011/03/04 05:56:49 jruoho Exp $
+.\"
+.\" Copyright (c) 2011 Jukka Ruohonen <[email protected]>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Neither the name of the author nor the names of any
+.\" contributors may be used to endorse or promote products derived
+.\" from this software without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd March 4, 2011
+.Dt ODCM 4
+.Os
+.Sh NAME
+.Nm odcm
+.Nd On-demand Clock Modulation
+.Sh SYNOPSIS
+.Cd "odcm0 at cpu0"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for changing the duty cycle of a
+.Tn CPU .
+This is sometimes known as
+.Dq on-demand clock modulation
+.Pq Tn ODCM .
+Refer to
+.Xr acpicpu 4
+for additional details about
+.Tn ODCM .
+.Pp
+The following
+.Xr sysctl 8
+variables are available with
+.Nm :
+.Bl -tag -width "machdep.clockmod.available " -offset indent
+.It Ic machdep.clockmod.target
+The target duty cycle of all
+.Tn CPUs .
+The values range from 7 (100 %) to 1 (approximately 13 %).
+.It Ic machdep.clockmod.current
+The current duty cycle of
+.Tn CPUs .
+.It Ic machdep.clockmod.available
+A list of available duty cycles.
+.El
+.Sh SEE ALSO
+.Xr acpicpu 4 ,
+.Xr est 4 ,
+.Xr powernow 4
+.Sh CAVEATS
+.Tn ODCM
+is meant for short-term thermal management, not power management.
+There is usually no reason for a system administrator
+to change the values manually.
+Lowering the duty cycle may dramatically decrease
+performance and responsiveness of the system.