Thread (14 messages) 14 messages, 2 authors, 2014-09-23
STALE4274d

[PATCH v12 08/10] clk: Take the prepare lock when updating the list of per-user clks

From: Tomeu Vizoso <hidden>
Date: 2014-09-22 14:16:31
Also in: lkml
Subsystem: common clk framework, the rest · Maintainers: Michael Turquette, Stephen Boyd, Linus Torvalds

Signed-off-by: Tomeu Vizoso <redacted>
---
 drivers/clk/clk.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 2a71f6c..17b6ba1 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help