Date: Sun, 16 Nov 2003 21:34:36 -0000 From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 42569 for review Message-ID: <200311162134.hAGLYYeU021394@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=42569 Change 42569 by peter@peter_overcee on 2003/11/16 13:34:28 deal with smp_active. This should be MI. Affected files ... .. //depot/projects/hammer/sys/kern/kern_switch.c#12 edit Differences ... ==== //depot/projects/hammer/sys/kern/kern_switch.c#12 (text+ko) ==== @@ -97,7 +97,7 @@ #include <sys/proc.h> #include <sys/queue.h> #include <sys/sched.h> -#if defined(SMP) && defined(__i386__) +#if defined(SMP) && (defined(__i386__) || defined(__amd64__)) #include <sys/smp.h> #endif #include <machine/critical.h> @@ -124,7 +124,7 @@ struct thread *td; struct ksegrp *kg; -#if defined(SMP) && defined(__i386__) +#if defined(SMP) && (defined(__i386__) || defined(__amd64__)) if (smp_active == 0 && PCPU_GET(cpuid) != 0) { /* Shutting down, run idlethread on AP's */ td = PCPU_GET(idlethread);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311162134.hAGLYYeU021394>