[PATCH]Re: Dtrace panic'ed

From: Chagin Dmitry <dchagin_at_freebsd.org>
Date: Mon, 23 Feb 2009 16:14:40 +0300
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
_at__at_ -362,9 +362,11 _at__at_ 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
Received on Mon Feb 23 2009 - 12:38:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC