Re: BUG: at kernel/sched.c:4031 __schedule()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-06-07 at 12:13 -0400, Steven Rostedt wrote:
> On Thu, 2007-06-07 at 17:58 +0200, Jan Altenberg wrote:
> > Hi,
> > 
> > > > in prepare_task_switch(rq, next); interrupts are enabled,
> > > 
> > > That's a bug.  __schedule should not have interrupts enabled.
> > > What's the back trace of this?
> > 
> > I've also seen this in the past. Interrupts are enabled in
> > prepare_lock_switch because ARM defines __ARCH_WANT_INTERRUPTS_ON_CTXSW.
> > 
> 
> Heh, silly me.  I've been focused so much on x86 that I forgot what
> other archs do.
> 
> > IIRC Thomas fixed this for the current -rt release.
> 
> Thomas, perhaps you want to post the fix.
> 
> What arch is innovator1510 (OMAP5910 cpu) anyway?
> 
> /me has been away from embedded systems for some time.

I was wrong, I guess it's still in there .. Below I think..

+ *
+ * The new debugging code in __schedule() expects that interrupts
+ * are disabled across a switch_to. Need to investigate which
+ * consequences this has.
  */
-#if 0 // preempt_rt hack, because warn_on in shedule.c triggers
+#ifndef CONFIG_PREEMPT_RT
 #define __ARCH_WANT_INTERRUPTS_ON_CTXSW
 #endif




-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux