[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221208233801.s26awslkx6aloxyd@vireshk-i7>
Date: Fri, 9 Dec 2022 05:08:01 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Lukasz Luba <lukasz.luba@....com>
Cc: linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
rafael@...nel.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: Re: [PATCH v3 1/1] cpufreq: schedutil: Optimize operations with
single CPU capacity lookup
On 08-12-22, 16:02, Lukasz Luba wrote:
> @@ -332,12 +333,15 @@ static void sugov_update_single_freq(struct update_util_data *hook, u64 time,
> struct sugov_cpu *sg_cpu = container_of(hook, struct sugov_cpu, update_util);
> struct sugov_policy *sg_policy = sg_cpu->sg_policy;
> unsigned int cached_freq = sg_policy->cached_raw_freq;
> + unsigned long max_cap;
> unsigned int next_f;
>
> - if (!sugov_update_single_common(sg_cpu, time, flags))
> + max_cap = arch_scale_cpu_capacity(sg_cpu->cpu);
I will rather do this at all three locations:
unsigned long max_cap = arch_scale_cpu_capacity(sg_cpu->cpu);
--
viresh
Powered by blists - more mailing lists