Page MenuHomeFreeBSD

hwpstate_intel: Use 8bit scale instead of percentage scale
ClosedPublic

Authored by aokblast on Mar 3 2026, 10:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 20, 7:14 PM
Unknown Object (File)
Thu, Aug 20, 6:32 AM
Unknown Object (File)
Tue, Aug 18, 5:39 AM
Unknown Object (File)
Thu, Aug 13, 12:14 PM
Unknown Object (File)
Thu, Aug 13, 12:14 PM
Unknown Object (File)
Thu, Aug 13, 12:13 PM
Unknown Object (File)
Thu, Aug 13, 12:35 AM
Unknown Object (File)
Mon, Aug 10, 12:04 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 71810
Build 68693: arc lint + arc unit

Event Timeline

Some suggested changes, looks good.

sys/x86/cpufreq/hwpstate_intel.c
223–224

In order to send [0;15] to the full [0;255] range (so that 255 is reported when EPB is set to 15), I'd rather use multiply by 17 (please add a small comment about that).

224
This revision is now accepted and ready to land.Jun 24 2026, 3:52 PM
markj added inline comments.
sys/x86/cpufreq/hwpstate_intel.c
539

This sysctl description needs to be updated, now the upper limit is 255.

Yes, I've noticed it also and is addressed in one of my staged commits. I'm AFK till the end of the month, though.