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

From: Colin Cross
Date: Mon Feb 07 2011 - 14:59:40 EST


On Sun, Feb 6, 2011 at 10:07 PM, Jeremy Kerr <jeremy.kerr@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/