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)
Tue, Feb 17, 3:24 AM
Unknown Object (File)
Thu, Feb 12, 5:26 AM
Unknown Object (File)
Tue, Feb 10, 3:31 PM
Unknown Object (File)
Mon, Feb 9, 3:24 AM
Unknown Object (File)
Fri, Feb 6, 11:34 PM
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
Subscribers

Diff Detail

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

Event Timeline

olce requested review of this revision.Sat, Jan 31, 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.Fri, Feb 6, 4:29 PM
This revision was automatically updated to reflect the committed changes.