diff options
author | dchagin <dchagin@FreeBSD.org> | 2009-03-03 17:34:09 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2009-03-03 17:34:09 +0000 |
commit | ab0c175b171983b88ef96f3006b83c9534c740f9 (patch) | |
tree | 52429eaebdc7081020b7d1a7d8a2b27149195139 /sys/kern | |
parent | 0e49e1ce16179ce1e47868148f16e154b0d2bde3 (diff) | |
download | FreeBSD-src-ab0c175b171983b88ef96f3006b83c9534c740f9.zip FreeBSD-src-ab0c175b171983b88ef96f3006b83c9534c740f9.tar.gz |
as suggested by jhb@, panic in case the ncpus == 0.
it helps to catch bugs in the callers.
Approved by: kib (mentor)
MFC after: 5 days
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index c1bd50e..e807e48 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -366,7 +366,7 @@ smp_rendezvous_cpus(cpumask_t map, if (((1 << i) & map) != 0 && !CPU_ABSENT(i)) ncpus++; if (ncpus == 0) - return; + panic("ncpus is 0 with map=0x%x", map); /* obtain rendezvous lock */ mtx_lock_spin(&smp_ipi_mtx); |