From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from postfix.timesys.com (mail.timesys.com [65.117.135.102]) by ozlabs.org (Postfix) with ESMTP id 07657679EA for ; Wed, 17 May 2006 03:38:34 +1000 (EST) Subject: Re: what does this mean? From: "Walter L. Wimer III" To: "Steve Iribarne (GMail)" In-Reply-To: References: Content-Type: text/plain Date: Tue, 16 May 2006 13:38:26 -0400 Message-Id: <1147801106.14881.2.camel@excalibur.timesys.com> Mime-Version: 1.0 Cc: linuxppc-embedded List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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