On Thu, Mar 12, 2015 at 08:20:30AM +0000, Jason McIntyre wrote:
> i think the "unknown" will be a catchall for errors, and we shouldn;t
> suggest to users that they can set it.

This makes sense.  They actually can't set it to "unknown".

> so my suggestion is below. i'll commit later if no one has yelled too
> much.

I like your wording of the second part better than mine.  However,
`automatic' really should be a literal `auto'.

$ sudo sysctl hw.perfpolicy=automatic
sysctl: hw.perfpolicy: Invalid argument
$ sudo sysctl hw.perfpolicy=auto
hw.perfpolicy: manual -> auto
$


>
> jmc
>
> Index: sysctl.3
> ===================================================================
> RCS file: /cvs/src/lib/libc/gen/sysctl.3,v
> retrieving revision 1.248
> diff -u -r1.248 sysctl.3
> --- sysctl.3  11 Mar 2015 19:42:38 -0000      1.248
> +++ sysctl.3  12 Mar 2015 08:20:10 -0000
> @@ -332,9 +332,10 @@
>  .It Dv HW_PERFPOLICY
>  The performance policy for power management.
>  Can be one of
> -.Qq manual
> +.Dq manual ,
> +.Dq automatic ,
>  or
> -.Qq automatic .
> +.Dq high .
>  .It Dv HW_PHYSMEM
>  The total physical memory, in bytes.
>  This variable is deprecated; use
> @@ -377,6 +378,10 @@
>  .It Dv HW_SETPERF
>  Current CPU performance
>  .Pq percentage .
> +It is only modifiable if
> +.Dv HW_PERFPOLICY
> +is set to
> +.Dq manual .
>  .It Dv HW_USERMEM
>  The amount of available non-kernel memory in bytes.
>  This variable is deprecated; use
>

Reply via email to