Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2009 16:14:40 +0300
From:      Chagin Dmitry <dchagin@freebsd.org>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-current@freebsd.org
Subject:   [PATCH]Re: Dtrace panic'ed
Message-ID:  <20090223131440.GA21690@dchagin.static.corbina.ru>
In-Reply-To: <499AE0E1.8030000@cs.duke.edu>
References:  <4995A792.5050003@cs.duke.edu> <20090215151114.GA2422@dchagin.static.corbina.ru> <499AE0E1.8030000@cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 17, 2009 at 11:08:01AM -0500, Andrew Gallatin wrote:
> Chagin Dmitry wrote:
> 
> > hi, I have the same problem and found the hack "solution":
> > 
> > dchagin# sysctl machdep.idle=hlt
> > machdep.idle: acpi -> hlt
> 
> Unfortunately, that did not help on this machine..
> 

hi, please test a patch bellow:

diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index 14d1297..c1bd50e 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -362,9 +362,11 @@ smp_rendezvous_cpus(cpumask_t map,
 		return;
 	}
 
-	for (i = 0; i < mp_maxid; i++)
+	for (i = 0; i <= mp_maxid; i++)
 		if (((1 << i) & map) != 0 && !CPU_ABSENT(i))
 			ncpus++;
+	if (ncpus == 0)
+		return;
 
 	/* obtain rendezvous lock */
 	mtx_lock_spin(&smp_ipi_mtx);


thnx!
-- 
Have fun!
chd



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