Index | Thread | Search

From:
"Ted Unangst" <tedu@tedunangst.com>
Subject:
Re: cpu perfpolicy
To:
"Kirill A. Korinsky" <kirill@korins.ky>
Cc:
tech@openbsd.org
Date:
Sun, 01 Jun 2025 15:57:40 -0400

Download raw body.

Thread
On 2025-06-01, Kirill A. Korinsky wrote:
> I haven't tried it but after reading the diff I think that after
> 
> sysctl hw.perfpolicy=silent,auto
> 
> you'll have result of sysctl hw.perfpolicy as:
>  - auto on AC
>  - unknown on battery

Without changing the existing code too much, the cpu policy functions
are responsible for altering the string. So it will eat the silent, part.
Look for the memmove.