Re: [PATCH] Change comment in include linux/clk.h

From: Haavard Skinnemoen
Date: Sun Oct 05 2008 - 15:56:25 EST


Russell King <rmk+lkml@xxxxxxxxxxxxxxxx> wrote:
> > I see several ARM implementation using mutexes for locking in these
> > functions. So I assume we never want to call them from interrupt
> > context, right?
>
> Correct. I'm not sure why anyone would even consider doing so.

I can't think of any reason to do so either, but having the comment
there makes me feel safer about having calls that might sleep or
irq-unsafe spinlocks in the implementation.

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