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

From: Jeremy Kerr
Date: Mon Feb 07 2011 - 20:40:49 EST


Hi Ryan,

> > +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.

Ah, I had planned to change this but (obviously) didn't get to it. Thanks for
the reminder, I'll include this in the next revision.

Cheers,


Jeremy
--
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/