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)
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
Unknown Object (File)
Mon, Aug 10, 12:35 AM
Unknown Object (File)
Mon, Aug 10, 12:34 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Some suggested changes, looks good.

sys/x86/cpufreq/hwpstate_intel.c
257–258

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).

258
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
572

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.