* Jeroen Ruigrok/Asmodai <[EMAIL PROTECTED]> [010210 08:24] wrote:
> -On [20010210 16:27], Jeroen Ruigrok/Asmodai ([EMAIL PROTECTED]) wrote:
> >#ifdef SMP
> > mtx_lock_spin(&sched_lock);
> > need_resched();
> > forward_roundrobin();
> > mtx_unlock_spin(&sched_lock);
> This does not quite work.
> I don't get the panic() anymore, but now I have solve the hanging. :)
> Perhaps only need_resched() needs to be spinlocked. I am not sure, I am
> not a SMP guru.
That looks correct, need_resched() needs sched_lock.
I'm currently looking to see if forward_roundrobin() does as well.
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message