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
F165434717: D55629.id180555.diff
Sat, Aug 8, 4:51 AM
F165362931: D55629.id174517.diff
Fri, Aug 7, 8:28 PM
Unknown Object (File)
Fri, Aug 7, 8:19 AM
Unknown Object (File)
Thu, Aug 6, 3:50 PM
Unknown Object (File)
Wed, Aug 5, 8:23 PM
Unknown Object (File)
Mon, Aug 3, 9:24 AM
Unknown Object (File)
Mon, Aug 3, 3:41 AM
Unknown Object (File)
Sun, Aug 2, 2:26 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