Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1331118
| From | Juri Lelli <juri.lelli@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks |
| Date | 2016-02-10 13:40 +0100 |
| Message-ID | <r0CdR-2bY-11@gated-at.bofh.it> (permalink) |
| References | <qWqbf-1BM-3@gated-at.bofh.it> <r04vw-4wh-3@gated-at.bofh.it> <r04Yy-50D-17@gated-at.bofh.it> <r0mLN-tr-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Rafael,
On 09/02/16 21:05, Rafael J. Wysocki wrote:
[...]
> +/**
> + * cpufreq_update_util - Take a note about CPU utilization changes.
> + * @util: Current utilization.
> + * @max: Utilization ceiling.
> + *
> + * This function is called by the scheduler on every invocation of
> + * update_load_avg() on the CPU whose utilization is being updated.
> + */
> +void cpufreq_update_util(unsigned long util, unsigned long max)
> +{
> + struct update_util_data *data;
> +
> + rcu_read_lock();
> +
> + data = rcu_dereference(*this_cpu_ptr(&cpufreq_update_util_data));
> + if (data && data->func)
> + data->func(data, cpu_clock(smp_processor_id()), util, max);
Are util and max used anywhere? It seems to me that cpu_clock is used by
the callbacks to check if the sampling period is elapsed, but I couldn't
yet find who is using util and max.
Thanks,
- Juri
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-02-09 21:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Steve Muckle <steve.muckle@linaro.org> - 2016-02-10 02:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-10 03:00 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-10 04:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Steve Muckle <steve.muckle@linaro.org> - 2016-02-10 20:50 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-10 22:50 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Steve Muckle <steve.muckle@linaro.org> - 2016-02-10 23:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-10 23:20 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Peter Zijlstra <peterz@infradead.org> - 2016-02-11 13:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Juri Lelli <juri.lelli@arm.com> - 2016-02-11 13:30 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Peter Zijlstra <peterz@infradead.org> - 2016-02-11 16:30 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Vincent Guittot <vincent.guittot@linaro.org> - 2016-02-11 19:30 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Peter Zijlstra <peterz@infradead.org> - 2016-02-12 15:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Vincent Guittot <vincent.guittot@linaro.org> - 2016-02-12 15:50 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Steve Muckle <steve.muckle@linaro.org> - 2016-02-11 18:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-11 18:40 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Peter Zijlstra <peterz@infradead.org> - 2016-02-11 18:40 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Peter Zijlstra <peterz@infradead.org> - 2016-02-11 18:40 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Steve Muckle <steve.muckle@linaro.org> - 2016-02-11 20:00 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-11 20:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-12 14:50 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Peter Zijlstra <peterz@infradead.org> - 2016-02-12 15:20 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-12 17:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-12 17:20 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Ashwin Chaugule <ashwin.chaugule@linaro.org> - 2016-02-12 18:00 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-13 00:20 +0100
RE: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Doug Smythies" <dsmythies@telus.net> - 2016-02-12 18:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-13 00:20 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Juri Lelli <juri.lelli@arm.com> - 2016-02-10 13:40 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-10 14:30 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Juri Lelli <juri.lelli@arm.com> - 2016-02-10 15:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-10 15:30 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Juri Lelli <juri.lelli@arm.com> - 2016-02-10 15:50 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-10 16:50 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Juri Lelli <juri.lelli@arm.com> - 2016-02-10 17:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Peter Zijlstra <peterz@infradead.org> - 2016-02-11 13:00 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-11 13:10 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks Peter Zijlstra <peterz@infradead.org> - 2016-02-11 16:30 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-11 17:00 +0100
Re: [PATCH 0/3] cpufreq: Replace timers with utilization update callbacks "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-11 21:50 +0100
csiph-web