Download raw body.
apmd: adapt to changes in hw.perfpolicy sysctl
On Fri, 10 Jan 2025 18:47:39 +0000
Klemens Nanni <kn@openbsd.org> wrote:
> 10.01.2025 20:13, Jeremie Courreges-Anglas пишет:
> > To get the default behavior of the kernel since 2021, which is
> > effectively "high,auto", you can just stop using apmd's -A flag.
>
> -A is the default, so dropping it should make no difference
> unless you pass -L or -H instead.
>
the manpage lies, actually there are 4 different ways:
-A doperf=PERF_AUTO and setperfpolicy("auto") on startup (sets
hw.perfpolicy=auto)
-L doperf=PERF_MANUAL and setperfpolicy("low") on startup (sets
hw.perfpolicy=manual and hw.setperf=0)
-H doperf=PERF_MANUAL and setperfpolicy("high") on startup (sets
hw.perfpolicy=manual and hw.setperf=100)
none of the above, doperf=PERF_MANUAL and no sysctl on startup
apmd: adapt to changes in hw.perfpolicy sysctl