[PATCH]Re: Dtrace panic'ed

Chagin Dmitry dchagin at freebsd.org
Mon Feb 23 05:38:33 PST 2009


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


More information about the freebsd-current mailing list