Skip to content

cpufreq: schedutil: Optimize operations in hot path frequency switch

Lukasz Luba linux-pm lkml 2 versions – Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 2 repliesApplied
  2. v22 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- 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

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/1cpufreq: schedutil: Optimize operations with single CPU capacity lookupkernel/sched/cpufreq_schedutil.c+23 -202 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

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

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(-)
Signature · 1 line
2.17.1