From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752865Ab1AUJlM (ORCPT ); Fri, 21 Jan 2011 04:41:12 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:39739 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752072Ab1AUJlK (ORCPT ); Fri, 21 Jan 2011 04:41:10 -0500 Date: Fri, 21 Jan 2011 09:40:42 +0000 From: Russell King - ARM Linux To: Saravana Kannan Cc: Ben Dooks , Lorenzo Pieralisi , Vincent Guittot , linux-sh , Ben Herrenschmidt , Sascha Hauer , linux-kernel , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Jeremy Kerr , linux-arm-kernel , Richard Zhao Subject: Re: Locking in the clk API Message-ID: <20110121094042.GD13235@n2100.arm.linux.org.uk> References: <201101111016.42819.jeremy.kerr@canonical.com> <20110111091607.GI12552@n2100.arm.linux.org.uk> <201101111744.59712.jeremy.kerr@canonical.com> <20110111103929.GN24920@pengutronix.de> <4D386ABF.9060908@fluff.org> <20110120190822.GK6335@n2100.arm.linux.org.uk> <4D3932B4.8010904@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D3932B4.8010904@codeaurora.org> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2011 at 11:16:04PM -0800, Saravana Kannan wrote: > This suggestion looked promising till I realized that clk_set_rate() > will still be atomic. clk_set_rate() will need to enable/disable the > PLLs depending on which PLLs the rates are derived from. So, the locking > in clk_prepare/unprepare() still has to be atomic since the "slow stuff" > is shared with clk_set_rate(). Who calls clk_set_rate() from an atomic context? Do we know whether anyone does?