Re: BUG: at kernel/sched.c:4031 __schedule()
From: Daniel Walker <hidden>
Date: 2007-06-07 16:24:30
On Thu, 2007-06-07 at 12:13 -0400, Steven Rostedt wrote:
On Thu, 2007-06-07 at 17:58 +0200, Jan Altenberg wrote:quoted
Hi,quoted
quoted
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.quoted
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