Thread (126 messages) 126 messages, 18 authors, 2011-04-20

Re: [RFC,PATCH 1/3] Add a common struct clk

From: Colin Cross <hidden>
Date: 2011-02-07 19:59:36
Also in: linux-arm-kernel, lkml

On Sun, Feb 6, 2011 at 10:07 PM, Jeremy Kerr [off-list ref] wrote:
<snip>
quoted hunk ↗ jump to hunk
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
new file mode 100644
index 0000000..12e0daf
--- /dev/null
+++ b/drivers/clk/clk.c
<snip>
+int clk_enable(struct clk *clk)
+{
+       int ret = 0;
+
+       if (!clk->ops->enable)
+               return 0;
+
+       spin_lock(&clk->enable_lock);
spin_lock_irqsave/spin_unlock_irqrestore.  This could get called with
irqs on or off.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help