summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-02-18 00:28:52 +0000
committernjl <njl@FreeBSD.org>2005-02-18 00:28:52 +0000
commitd49b95d8a801a168c891631734fe9de0807d6485 (patch)
tree82a5ca89e6fd9449418bcded5e28877f631b8873 /share/man
parent18a69f46e3ac23cb04aa2d1abf75f3aebf0c4e9a (diff)
downloadFreeBSD-src-d49b95d8a801a168c891631734fe9de0807d6485.zip
FreeBSD-src-d49b95d8a801a168c891631734fe9de0807d6485.tar.gz
Document the cpufreq_drv_type() method and info-only flag.
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man4/cpufreq.421
1 files changed, 15 insertions, 6 deletions
diff --git a/share/man/man4/cpufreq.4 b/share/man/man4/cpufreq.4
index 69e01c7..bf908b2 100644
--- a/share/man/man4/cpufreq.4
+++ b/share/man/man4/cpufreq.4
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 14, 2005
+.Dd February 17, 2005
.Dt CPUFREQ 4
.Os
.Sh NAME
@@ -45,9 +45,10 @@
.Fa "device_t dev"
.Fa "struct cf_setting *sets"
.Fa "int *count"
-.Fa "int *type"
.Fc
.Ft int
+.Fn cpufreq_drv_type "device_t dev" "int *type"
+.Ft int
.Fn cpufreq_drv_set "device_t dev" "const struct cf_setting *set"
.Ft int
.Fn cpufreq_drv_get "device_t dev" "struct cf_setting *set"
@@ -182,8 +183,9 @@ Kernel drivers offering hardware-specific CPU frequency control export
their individual settings through the
.Nm
driver interface.
-This involves implementing three methods:
+This involves implementing these methods:
.Fn cpufreq_drv_settings ,
+.Fn cpufreq_drv_type ,
.Fn cpufreq_drv_set ,
and
.Fn cpufreq_drv_get .
@@ -218,12 +220,19 @@ If the driver offers more settings than
.Fa count
will allow, it should return
.Er E2BIG .
-The driver sets
-.Fa type
-to the type of settings it offers, either
+.Pp
+The
+.Fn cpufreq_drv_type
+method indicates the type of settings it offers, either
.Dv CPUFREQ_TYPE_ABSOLUTE
or
.Dv CPUFREQ_TYPE_RELATIVE .
+Additionally, the driver may set the
+.Dv CPUFREQ_FLAG_INFO_ONLY
+flag if the settings it provides are information for other drivers only
+and cannot be passed to
+.Fn cpufreq_drv_set
+to activate them.
.Pp
The
.Fn cpufreq_drv_set
OpenPOWER on IntegriCloud