[PATCH v3 0/1] cpufreq: schedutil: Optimize operations in hot path frequency switch

From: Lukasz Luba
Date: Thu Dec 08 2022 - 11:03:44 EST


Hi all,

This v3 is an attempt to optimize some of not needed operations in the frequency
change code path for the shared freq. domain. There was different approach
which was too aggressive and failed due to working on a stale CPU capacity
information.

changes:
v3:
- follow Vincent recommendation to drop the sg_policy::max, I have instead
tried to reduce the lookup and cache pressure, but use local var passing
to functions when needed
- unfortunately I couldn't use Viresh's ACKs for the v2 patches, since the code
has changed heavily
- updated the patch header with description of the code flow and the issue, since I
thought this optimization reason should be better explained, so people can refer
to it, since the former approach was reverted
v2:
- split the patch into two (Viresh)
v1:
- simple approach which fetches CPU capacity every time it's needed,
not relaying on the setup value, which was causing issues.

Regards,
Lukasz

Lukasz Luba (1):
cpufreq: schedutil: Optimize operations with single CPU capacity
lookup

kernel/sched/cpufreq_schedutil.c | 43 +++++++++++++++++---------------
1 file changed, 23 insertions(+), 20 deletions(-)

--
2.17.1