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)
Sun, Jul 26, 4:58 PM
Unknown Object (File)
Fri, Jul 24, 5:21 PM
Unknown Object (File)
Sat, Jul 18, 12:32 PM
Unknown Object (File)
Sat, Jul 18, 10:03 AM
Unknown Object (File)
Wed, Jul 15, 7:11 AM
Unknown Object (File)
Wed, Jul 15, 7:11 AM
Unknown Object (File)
Mon, Jul 6, 10:53 AM
Unknown Object (File)
Mon, Jul 6, 5:04 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