Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1684016
| From | Joel Fernandes <joelaf@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v1 4/8] sched/cpufreq_schedutil: split utilization signals |
| Date | 2017-07-10 09:50 +0200 |
| Message-ID | <u1BCb-28a-13@gated-at.bofh.it> (permalink) |
| References | <tZOtQ-4hV-5@gated-at.bofh.it> <tZOtS-4hV-41@gated-at.bofh.it> <u0xhg-1wr-13@gated-at.bofh.it> <u0z9o-2TL-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Jul 7, 2017 at 3:59 AM, Juri Lelli <juri.lelli@arm.com> wrote:
[..]
>
>> If yes, then I don't think it was about having separate APIs, but just storing
>> util_cfs/dl separately.
>>
>> > -static void sugov_get_util(unsigned long *util, unsigned long *max)
>> > +static void sugov_get_util(struct sugov_cpu *sg_cpu)
>> > {
>> > struct rq *rq = this_rq();
>> > - unsigned long dl_util = (rq->dl.running_bw * SCHED_CAPACITY_SCALE)
>> > - >> BW_SHIFT;
>> >
>> > - *max = arch_scale_cpu_capacity(NULL, smp_processor_id());
>> > + sg_cpu->max = arch_scale_cpu_capacity(NULL, smp_processor_id());
>> > + sg_cpu->util_cfs = rq->cfs.avg.util_avg;
>> > + sg_cpu->util_dl = (rq->dl.running_bw * SCHED_CAPACITY_SCALE)
>> > + >> BW_SHIFT;
>> > +}
>> >
>> > +static unsigned long sugov_aggregate_util(struct sugov_cpu *sg_cpu)
>>
>> As Joel already mentioned, I don't think we should create two separate routines
>> here.
>>
>
> Mmm, it makes retrieving of utilization in sugov_update_shared and
> aggregating values for the domain in sugov_next_freq_shared cleaner,
> IMHO.
>
I agree, thanks.
-Joel
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH v1 0/8] SCHED_DEADLINE freq/cpu invariance and OPP selection Juri Lelli <juri.lelli@arm.com> - 2017-07-05 11:10 +0200
[RFC PATCH v1 5/8] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq Juri Lelli <juri.lelli@arm.com> - 2017-07-05 11:10 +0200
Re: [RFC PATCH v1 5/8] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq Viresh Kumar <viresh.kumar@linaro.org> - 2017-07-07 11:00 +0200
Re: [RFC PATCH v1 5/8] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq Peter Zijlstra <peterz@infradead.org> - 2017-07-11 18:20 +0200
Re: [RFC PATCH v1 5/8] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq Juri Lelli <juri.lelli@arm.com> - 2017-07-11 19:20 +0200
[RFC PATCH v1 7/8] sched/sched.h: move arch_scale_{freq,cpu}_capacity outside CONFIG_SMP Juri Lelli <juri.lelli@arm.com> - 2017-07-05 11:10 +0200
Re: [RFC PATCH v1 7/8] sched/sched.h: move arch_scale_{freq,cpu}_capacity outside CONFIG_SMP Steven Rostedt <rostedt@goodmis.org> - 2017-07-08 00:10 +0200
[RFC PATCH v1 4/8] sched/cpufreq_schedutil: split utilization signals Juri Lelli <juri.lelli@arm.com> - 2017-07-05 11:10 +0200
Re: [RFC PATCH v1 4/8] sched/cpufreq_schedutil: split utilization signals Joel Fernandes <joelaf@google.com> - 2017-07-07 05:30 +0200
Re: [RFC PATCH v1 4/8] sched/cpufreq_schedutil: split utilization signals Viresh Kumar <viresh.kumar@linaro.org> - 2017-07-07 11:00 +0200
Re: [RFC PATCH v1 4/8] sched/cpufreq_schedutil: split utilization signals Juri Lelli <juri.lelli@arm.com> - 2017-07-07 13:00 +0200
Re: [RFC PATCH v1 4/8] sched/cpufreq_schedutil: split utilization signals Joel Fernandes <joelaf@google.com> - 2017-07-10 09:50 +0200
Re: [RFC PATCH v1 4/8] sched/cpufreq_schedutil: split utilization signals Viresh Kumar <viresh.kumar@linaro.org> - 2017-07-10 09:10 +0200
[RFC PATCH v1 2/8] sched/deadline: move cpu frequency selection triggering points Juri Lelli <juri.lelli@arm.com> - 2017-07-05 11:10 +0200
Re: [RFC PATCH v1 2/8] sched/deadline: move cpu frequency selection triggering points Viresh Kumar <viresh.kumar@linaro.org> - 2017-07-07 09:30 +0200
Re: [RFC PATCH v1 0/8] SCHED_DEADLINE freq/cpu invariance and OPP selection Steven Rostedt <rostedt@goodmis.org> - 2017-07-06 18:00 +0200
Re: [RFC PATCH v1 0/8] SCHED_DEADLINE freq/cpu invariance and OPP selection Juri Lelli <juri.lelli@arm.com> - 2017-07-06 18:10 +0200
Re: [RFC PATCH v1 0/8] SCHED_DEADLINE freq/cpu invariance and OPP selection Peter Zijlstra <peterz@infradead.org> - 2017-07-06 18:20 +0200
Re: [RFC PATCH v1 0/8] SCHED_DEADLINE freq/cpu invariance and OPP selection "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-07-06 23:20 +0200
csiph-web