[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1410445583-18626-5-git-send-email-tomeu.vizoso@collabora.com>
Date: Thu, 11 Sep 2014 16:26:21 +0200
From: Tomeu Vizoso <tomeu.vizoso@...labora.com>
To: Mike Turquette <mturquette@...aro.org>
Cc: Stephen Warren <swarren@...dotorg.org>,
Thierry Reding <thierry.reding@...il.com>,
tomasz.figa@...il.com,
Peter De Schrijver <pdeschrijver@...dia.com>, rabin@....in,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Javier Martinez Canillas <javier.martinez@...labora.co.uk>,
Tomeu Vizoso <tomeu.vizoso@...labora.com>
Subject: [PATCH v11 7/9] clk: Take the prepare lock when updating the list of per-user clks
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@...labora.com>
---
drivers/clk/clk.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists