scx_bpfland: Support balance_power and balance_performance power modes #2016
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CPU frequency scaling drivers, such as intel_pstate or amd_pstate, expose intermediate "balanced" performance scaling preferences:
balance_powerandbalance_performance.Expose them via `scx_utils::autopower, so that scx schedulers can use this information to apply more fine-grained performance / power-saving optimizations.
Adjust the behavior of
scx_bpfland -m autoto use the new power modesbalance_powerandbalance_performance.@multics69 FYI, this includes a small change to scx_lavd as well to support the new
PowerProfile::Balanced { power: true | false }states, which are both mapped toLAVD_PM_BALANCED, so there's no functional change.