LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Walter L. Wimer III" <walt.wimer@timesys.com>
To: "Steve Iribarne (GMail)" <netstv@gmail.com>
Cc: linuxppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: Re: what does this mean?
Date: Tue, 16 May 2006 13:38:26 -0400	[thread overview]
Message-ID: <1147801106.14881.2.camel@excalibur.timesys.com> (raw)
In-Reply-To: <b4b98b690605160951o5cefddd8t6b19a91a708f0431@mail.gmail.com>

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

  reply	other threads:[~2006-05-16 17:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-16 16:51 what does this mean? Steve Iribarne (GMail)
2006-05-16 17:38 ` Walter L. Wimer III [this message]
2006-05-16 17:42   ` Walter L. Wimer III
2006-05-16 18:04     ` Steve Iribarne (GMail)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1147801106.14881.2.camel@excalibur.timesys.com \
    --to=walt.wimer@timesys.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=netstv@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox