Page MenuHomeFreeBSD

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

Authored by olce on Sat, Jan 31, 11:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 2, 4:19 PM
Unknown Object (File)
Mon, Feb 2, 3:43 AM
Unknown Object (File)
Sun, Feb 1, 5:53 AM
Unknown Object (File)
Sun, Feb 1, 3:28 AM
Unknown Object (File)
Sun, Feb 1, 12:58 AM
Unknown Object (File)
Sat, Jan 31, 8:57 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70273
Build 67156: arc lint + arc unit

Event Timeline

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

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

sys/x86/cpufreq/hwpstate_amd.c
213

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.Fri, Feb 6, 4:29 PM
This revision was automatically updated to reflect the committed changes.