From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony@atomide.com (Tony Lindgren) Date: Thu, 21 Apr 2011 04:39:16 -0700 Subject: [PATCH RFC] clk: add support for automatic parent handling In-Reply-To: <20110421101340.GA16776@sirena.org.uk> References: <1303308457-7501-1-git-send-email-u.kleine-koenig@pengutronix.de> <20110420185922.GD31131@pengutronix.de> <20110421072259.GG31131@pengutronix.de> <20110421101340.GA16776@sirena.org.uk> Message-ID: <20110421113916.GI13688@atomide.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org * Mark Brown [110421 03:11]: > On Thu, Apr 21, 2011 at 09:22:59AM +0200, Uwe Kleine-K?nig wrote: > > On Wed, Apr 20, 2011 at 09:52:15PM +0200, Thomas Gleixner wrote: > > > > - a field for the current clock rate > > > Then you need a mechanism to notify the children if the rate or parent > > of a clock changes. I assume you won't allow that for a clock that has > > more than one (enabled) consumer. Knowing only very few platforms I > > don't know if that is something you can forbid. > > I suspect you need it - cpufreq style scaling of the core clocks (which > many SoCs can do) involves pretty much the entire clock tree, though > obviously the idea is that the effects get hidden at the edges. That's correct, scaling of the whole clock tree is needed for cpufreq and DVFS. An example is scaling of the L3 bus on omaps. Tony