Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 69780 Build 66663: arc lint + arc unit
Event Timeline
| sys/x86/cpufreq/hwpstate_amd.c | ||
|---|---|---|
| 226 | Simpler: req->res = rdmsr_safe(MSR_AMD_CPPC_ENABLE, &req->enable);
if (req->res == 0)
req->res = rdmsr_safe(MSR_AMD_CPPC_CAPS_1, &req->caps);
if (req->res == 0)
req->res = rdmsr_safe(MSR_AMD_CPPC_REQUEST, &req->req);Just a suggestion, feel free to ignore. | |
| 228 | Call it req for consistency with other places? | |
| 241–245 | Just a thought: it might be nice to have an smp_rendezvous_cpu() variant which takes a CPU ID instead of a cpuset. | |
| 293–294 | This should be done in the caller, not in the callback. Keep in mind that smp rendezvous callbacks are invoked with interrupts disabled, so they should do as little work as possible. Calling device_printf() is ok, but other operations should be avoided if possible. | |
| sys/x86/cpufreq/hwpstate_amd.c | ||
|---|---|---|
| 228 | SYSCTL_HANDLER_ARGS have already used req as variable name. | |
| 241–245 | I am also thinking about making some inline function like rdmsr_on_cpu and wrmsr_on_cpu which prevent us from writing callback each time when we just want to read and write a single MSR value at a time. | |
| sys/kern/subr_smp.c | ||
|---|---|---|
| 633 ↗ | (On Diff #169077) | This has been in a seperate commit. I will make another differnetial tomorrow. |
| sys/x86/cpufreq/hwpstate_amd.c | ||
|---|---|---|
| 215–218 | Inverted tests here. | |