[RFC,PATCH 1/3] Add a common struct clk
Jeremy Kerr
jeremy.kerr at canonical.com
Mon Feb 7 20:40:32 EST 2011
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
More information about the linux-arm-kernel
mailing list