* Jeroen Ruigrok/Asmodai <asmo...@wxs.nl> [010210 08:24] wrote:
-On [20010210 16:27], Jeroen Ruigrok/Asmodai (asmo...@wxs.nl) wrote:
#ifdef SMP
mtx_lock_spin(&sched_lock);
need_resched();
forward_roundrobin();
mtx_unlock_spin(&sched_lock);
#else
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.
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message