diff options
| author | Rafael J. Wysocki <[email protected]> | 2025-05-06 20:39:35 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-05-13 12:34:18 +0000 |
| commit | 3e3ba654d3097e0031f2add215b12ff81c23814e (patch) | |
| tree | a7679c23ad463d9453849aeac013a8e4ee3c9530 /rust/helpers/clk.c | |
| parent | PM: EM: Documentation: Fix typos in example driver code (diff) | |
| download | kernel-3e3ba654d3097e0031f2add215b12ff81c23814e.tar.gz kernel-3e3ba654d3097e0031f2add215b12ff81c23814e.zip | |
PM: EM: Move CPU capacity check to em_adjust_new_capacity()
Move the check of the CPU capacity currently stored in the energy model
against the arch_scale_cpu_capacity() value to em_adjust_new_capacity()
so it will be done regardless of where the latter is called from.
This will be useful when a new em_adjust_new_capacity() caller is added
subsequently.
While at it, move the pd local variable declaration in
em_check_capacity_update() into the loop in which it is used.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Lukasz Luba <[email protected]>
Tested-by: Christian Loehle <[email protected]>
Reviewed-by: Dietmar Eggemann <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'rust/helpers/clk.c')
0 files changed, 0 insertions, 0 deletions
