From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 9/9] [ARM] tegra: Add cpufreq support Date: Fri, 30 Jul 2010 21:20:10 +0100 Message-ID: <20100730202010.GA22180@sirena.org.uk> References: <1280449771-24043-1-git-send-email-ccross@google.com> <1280449771-24043-10-git-send-email-ccross@google.com> <20100730131124.GA3117@isilmar-3.linta.de> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: cpufreq-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Colin Cross Cc: Dominik Brodowski , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, cpufreq@vger.kernel.org On Fri, Jul 30, 2010 at 12:56:33PM -0700, Colin Cross wrote: > On Fri, Jul 30, 2010 at 6:11 AM, Dominik Brodowski > >> + ? ? ret = clk_set_rate_cansleep(cpu_clk, freqs.new * 1000); > > "can sleep"? For how long? > Adjusting the CPU clock may require changing the voltage through the > regulator api, which locks a mutex, and eventually through I2C, which > sleeps on I2C completion. ...although in some systems the I2C cost will be replaced with updating a GPIO which is very much cheaper.