BUG: sleeping function called from invalid context

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Nov 24 04:01:41 EST 2011


On Thu, Nov 24, 2011 at 08:14:06AM +0100, Uwe Kleine-König wrote:
> On Wed, Nov 23, 2011 at 10:51:24PM +0000, Russell King - ARM Linux wrote:
> > So really, there's no excuse not to fix this for the imx/mxwhatever SoCs
> > today - the clk framework is totally irrelevant as far as this goes.
> I think doing the clk_prepare seperation and converting to the clk
> framework in one step will be easier.

>From a point of view of being able to separate the changes so there isn't
a flag day, you're wrong.  clk_prepare() is already present in the kernel
as dummy functions, and all you need to do at this point is arrange for
the drivers to make the appropriate calls.  There's no need to write one
line of code behind clk_prepare() at the current time.

If you then want to provide a clk_prepare() implementation, then you need
to select CONFIG_HAVE_CLK_PREPARE to prevent the dummy function being
used.



More information about the linux-arm-kernel mailing list