summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/mpapic.h
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>2000-01-07 08:49:25 +0000
committerluoqi <luoqi@FreeBSD.org>2000-01-07 08:49:25 +0000
commit35b4c17c7948fded5016e651c9f3b6292e720a09 (patch)
treee1925c1031b9bc86cbff534a5b1a2955ab60de6d /sys/i386/include/mpapic.h
parente100d44d5538cc21abeba58f459ce9eb497651a9 (diff)
downloadFreeBSD-src-35b4c17c7948fded5016e651c9f3b6292e720a09.zip
FreeBSD-src-35b4c17c7948fded5016e651c9f3b6292e720a09.tar.gz
Allow SMP && NCPU == 1 to work. From now on, there's no restriction on the
value of NCPU relative to the number of cpus physically present, the actual number of cpus utilized will be the smaller of the two.
Diffstat (limited to 'sys/i386/include/mpapic.h')
-rw-r--r--sys/i386/include/mpapic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/include/mpapic.h b/sys/i386/include/mpapic.h
index a009936..4a38719 100644
--- a/sys/i386/include/mpapic.h
+++ b/sys/i386/include/mpapic.h
@@ -98,6 +98,8 @@ all_procs_ipi(int vector)
static __inline int
all_but_self_ipi(int vector)
{
+ if (mp_ncpus <= 1)
+ return 0;
return apic_ipi(APIC_DEST_ALLESELF, vector, APIC_DELMODE_FIXED);
}
OpenPOWER on IntegriCloud