Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1311317 > unrolled thread
| Started by | Viresh Kumar <viresh.kumar@linaro.org> |
|---|---|
| First post | 2016-01-18 06:10 +0100 |
| Last post | 2016-01-18 06:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC PATCH 18/19] cpufreq: remove transition_lock Viresh Kumar <viresh.kumar@linaro.org> - 2016-01-18 06:10 +0100
| From | Viresh Kumar <viresh.kumar@linaro.org> |
|---|---|
| Date | 2016-01-18 06:10 +0100 |
| Subject | Re: [RFC PATCH 18/19] cpufreq: remove transition_lock |
| Message-ID | <qSaeK-4ni-1@gated-at.bofh.it> |
On 14-01-16, 13:52, Juri Lelli wrote: > I was under the impression that the purpose of having > __cpufreq_driver_target() exported outside cpufreq.c was working due to > the fact that users implement their own locking. > > That's why I put the following comment in this patch. > > /* > * Callers must ensure proper mutual exclusion on policy (for transition_ > * ongoing/transition_task handling). While holding policy->rwsem is > * sufficient, other schemes might work as well (e.g., cpufreq_governor.c > * holds timer_mutex while entering the path that generates transitions). > */ > > >From what I can see ondemand and conservative (via governor) seem to use > timer_mutex; userspace userspace_mutex instead. Do they serve different > purposes instead? How do we currently serialize operations on policy > when using __cpufreq_driver_target() directly otherwise? The patch I referred to earlier in the thread had detailed few of the races we were worried about. The lock you just removed is responsible for taking care of the races you are worried now :) -- viresh
Back to top | Article view | linux.kernel
csiph-web