From: Igor Stoppa <igor.stoppa@nokia.com>
To: ext Kevin Hilman <khilman@mvista.com>
Cc: Tony Lindgren <tony@atomide.com>, Paul Walmsley <paul@pwsan.com>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH 5/5] ARM: OMAP: remove unnecessary locking in clk_get_rate()
Date: Thu, 05 Jun 2008 03:30:02 +0300 [thread overview]
Message-ID: <1212625802.19234.24.camel@mort> (raw)
In-Reply-To: <48472F29.8000109@mvista.com>
Hi,
On Wed, 2008-06-04 at 17:11 -0700, ext Kevin Hilman wrote:
> The same can happen even with the locking. If someone asks for the
> rate, and then another thread changes the rate right after, the thread
> who asked for the rate has an out-of-date value.
I don't understand how this would materialize in practice:
- if the rate is beign changed by 2 threads from the same driver, then
the driver itself needs to take care of its internal state and coherency
- if 2 different drivers are contending the same clock, then 2 children
clocks should be created and the clock fw would take care of failing the
request of the 2nd child, if it is incompatible with the rate set by the
1st one
- if a dvfs change is responsible of changing the rate supplied to a
driver which asked it with clk_get_rate(), the dvfs transition has no
reason to happen in case it would violate the constraints set by clock
users.
Does this make sense?
--
Cheers, Igor
---
Igor Stoppa
Nokia Devices R&D - Helsinki
next prev parent reply other threads:[~2008-06-05 0:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-20 22:42 [PATCH 0/5] RT: Misc. fixups for ARM/OMAP against 2.6.25.4-rt3 Kevin Hilman
2008-05-20 22:45 ` [PATCH 1/5] RT: ARM: remove non-existant trace_preempt_*_idle calls from idle loop Kevin Hilman
2008-05-20 22:45 ` [PATCH 2/5] RT: wrap BUILD_CHECK_IRQ_FLAGS Kevin Hilman
2008-05-20 22:45 ` [PATCH 3/5] RT: ARM: remove __attribute_used__ from semaphore code Kevin Hilman
2008-05-20 22:45 ` [RFC/PATCH 4/5] RT: ARM: disable duplicate cmpxchg Kevin Hilman
2008-05-20 22:45 ` [PATCH " Kevin Hilman
2008-05-20 22:45 ` [PATCH 5/5] ARM: OMAP: remove unnecessary locking in clk_get_rate() Kevin Hilman
2008-06-04 7:01 ` Paul Walmsley
2008-06-04 16:35 ` Kevin Hilman
2008-06-04 22:30 ` Tony Lindgren
2008-06-05 0:11 ` Kevin Hilman
2008-06-05 0:30 ` Igor Stoppa [this message]
2008-06-05 1:54 ` Paul Walmsley
2008-05-21 1:33 ` [PATCH 0/5] RT: Misc. fixups for ARM/OMAP against 2.6.25.4-rt3 Luís Vitório Cargnini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1212625802.19234.24.camel@mort \
--to=igor.stoppa@nokia.com \
--cc=khilman@mvista.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox