| Date | Mon, 7 Feb 2011 11:59:26 -0800 | Subject | Re: [RFC,PATCH 1/3] Add a common struct clk | From | Colin Cross <> |
| |
On Sun, Feb 6, 2011 at 10:07 PM, Jeremy Kerr <jeremy.kerr@canonical.com> wrote: <snip>
> 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|