Message ID | 1410445583-18626-5-git-send-email-tomeu.vizoso@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1A465C0338 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 11 Sep 2014 14:30:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6DFE320265 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 11 Sep 2014 14:29:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5723D20251 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 11 Sep 2014 14:29:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XS5M5-00023o-6Y; Thu, 11 Sep 2014 14:28:13 +0000 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XS5L7-0000mi-Q0 for linux-arm-kernel@lists.infradead.org; Thu, 11 Sep 2014 14:27:14 +0000 Received: by mail-wi0-f178.google.com with SMTP id ho1so1129512wib.17 for <linux-arm-kernel@lists.infradead.org>; Thu, 11 Sep 2014 07:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=x09BZ2bnsAD6K+1h9JQ69mt6lJxIa0Br6ZCzjZUv2l8=; b=DZQiyUfq83MabhxlD+qSyPZCeaLS26rXR4MHleZy00eCnRaN5gs+oo2WvyU8f78LV+ rsm65VsLzuN0jKwuAWUOZOfMarfAVBWKQwq85GuaLBo7yESgjwfcfJ/1Vp3mUFPhB7CP la6vfvAOSl4tX5MdqvW7l/aau+u9c+SuDo+MlVTiFrDT6wSrXZFeY/MP/iCPG8cJaToa IshIlnl/CeAaIu/Pa8vkBhwzv8FVTzzoVwPYCCk5YZv64ncwKkY3dg87FbfNeFav6Ibb ZQAhUNKiwmser+JFoRsKtfSH3mdiKxsYGe78z1/g5R5PhDeZnbTw3RyyLCQrUn98IDkB AqbQ== X-Received: by 10.194.90.4 with SMTP id bs4mr1857556wjb.71.1410445608406; Thu, 11 Sep 2014 07:26:48 -0700 (PDT) Received: from localhost.localdomain (37-48-42-23.tmcz.cz. [37.48.42.23]) by mx.google.com with ESMTPSA id ka3sm1421242wjc.3.2014.09.11.07.26.44 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Sep 2014 07:26:47 -0700 (PDT) From: Tomeu Vizoso <tomeu.vizoso@collabora.com> To: Mike Turquette <mturquette@linaro.org> Subject: [PATCH v11 7/9] clk: Take the prepare lock when updating the list of per-user clks Date: Thu, 11 Sep 2014 16:26:21 +0200 Message-Id: <1410445583-18626-5-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1410445583-18626-1-git-send-email-tomeu.vizoso@collabora.com> References: <1410445421-18362-1-git-send-email-tomeu.vizoso@collabora.com> <1410445583-18626-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140911_072714_021999_1DB78BCD X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>, Stephen Warren <swarren@wwwdotorg.org>, Peter De Schrijver <pdeschrijver@nvidia.com>, linux-kernel@vger.kernel.org, tomasz.figa@gmail.com, rabin@rab.in, Thierry Reding <thierry.reding@gmail.com>, Javier Martinez Canillas <javier.martinez@collabora.co.uk>, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 3018f37..f283dcc 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -560,7 +560,9 @@ struct clk *__clk_create_clk(struct clk_core *clk_core, const char *dev, clk->dev_id = dev; clk->con_id = con; + clk_prepare_lock(); hlist_add_head(&clk->child_node, &clk_core->per_user_clks); + clk_prepare_unlock(); return clk; }
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> --- drivers/clk/clk.c | 2 ++ 1 file changed, 2 insertions(+)