CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/09/24 01:23:41
Modified files:
usr.sbin/apmd : apmd.c
Log message:
Always ask the kernel about current hw.perfpolicy
apmd(8) doesn't need to maintain state about the current hw.perfpolicy.
Dropping this weak caching fixes several issues:
- setting hw.perfpolicy can fail, don't report a bogus hw.perfpolicy if
that happens (reported by Miod)
- don't assume that hw.perfpolicy is set to "manual" at apmd(8) startup
- don't assume that hw.perfpolicy can't change behind apmd(8)'s back
"Seems fine" tedu@