what does this mean?

Walter L. Wimer III walt.wimer at timesys.com
Wed May 17 03:38:26 EST 2006


On Tue, 2006-05-16 at 09:51 -0700, Steve Iribarne (GMail) wrote:
> My code is hitting in sched.c ->
> 
> 	if (unlikely(in_interrupt())) {
> 		printk("Scheduling in interrupt\n");
> 		BUG();
> 	}
> It is hitting this printk.  So is this telling me I'm calling schedule
> from within an interrupt?  How can this be?  Has anyone else seen
> something like this and can anyone give me a hint as to what to look
> for.

Check to make sure that in your interrupt handler you are not calling
something that can sleep.  E.g. sleep(), usleep(), kmalloc(), vmalloc(),
etc. 


> Thanks.
> -stv


Best regards,

Walt Wimer
TimeSys Corporation





More information about the Linuxppc-embedded mailing list