Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2001 17:24:17 +0100
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        current@FreeBSD.ORG, smp@FreeBSD.ORG
Subject:   Re: Current SMP Kernel panics
Message-ID:  <20010210172417.F406@daemon.ninth-circle.org>
In-Reply-To: <20010210162033.C406@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Feb 10, 2001 at 04:20:34PM %2B0100
References:  <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> <20010210162033.C406@daemon.ninth-circle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-On [20010210 16:27], Jeroen Ruigrok/Asmodai (asmodai@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.

-- 
Jeroen Ruigrok vd Werven/Asmodai    asmodai@[wxs.nl|bart.nl|freebsd.org]
Documentation nutter/C-rated Coder BSD: Technical excellence at its best  
	  D78D D0AD 244D 1D12 C9CA  7152 035C 1138 546A B867
I'm a child of the air, I'm a witch of the wind...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010210172417.F406>