Page MenuHomeFreeBSD

hwpstate_amd(4): Assert PSTATE_CPPC is on in corresponding sysctl handlers
ClosedPublic

Authored by olce on Jan 31 2026, 11:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 23, 3:21 PM
Unknown Object (File)
Thu, Jul 23, 4:33 AM
Unknown Object (File)
Wed, Jul 22, 6:32 PM
Unknown Object (File)
Tue, Jul 21, 4:00 PM
Unknown Object (File)
Tue, Jul 21, 1:16 AM
Unknown Object (File)
Sun, Jul 19, 4:21 PM
Unknown Object (File)
Sat, Jul 18, 7:58 PM
Unknown Object (File)
Fri, Jul 17, 11:37 PM
Subscribers

Diff Detail

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

Event Timeline

olce requested review of this revision.Jan 31 2026, 11:46 AM
sys/x86/cpufreq/hwpstate_amd.c
206

Can it just be a macro? I don't think inline always work. Or always inline?

sys/x86/cpufreq/hwpstate_amd.c
206

I think we should use functions unless we have a good reason to use macros, for type safety, single evaluations of arguments, etc.

The inline here is anyway cosmetic, clang always inlines such small functions even if there's no explicit hint.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 6 2026, 4:29 PM
This revision was automatically updated to reflect the committed changes.