[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221208160256.859-1-lukasz.luba@arm.com>
Date: Thu, 8 Dec 2022 16:02:55 +0000
From: Lukasz Luba <lukasz.luba@....com>
To: linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
rafael@...nel.org
Cc: lukasz.luba@....com, viresh.kumar@...aro.org,
dietmar.eggemann@....com, vincent.guittot@...aro.org,
saravanak@...gle.com, wusamuel@...gle.com,
isaacmanjarres@...gle.com, kernel-team@...roid.com,
juri.lelli@...hat.com, peterz@...radead.org, mingo@...hat.com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de
Subject: [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(-)
--
2.17.1
Powered by blists - more mailing lists