diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2016-10-26 12:30:53 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2016-10-26 12:30:53 +0000 |
commit | 2eb8079722516c37c1e8d9f2a75c38d33f966959 (patch) | |
tree | 4f2cd6c2bf5d7309c0d4e31ea6d7b30dba3135ae /sys/arm64 | |
parent | 2e620e70f9abf20cb17ff707f16db4e65fea0541 (diff) | |
download | src-2eb8079722516c37c1e8d9f2a75c38d33f966959.tar.gz src-2eb8079722516c37c1e8d9f2a75c38d33f966959.zip |
Only release CPUs when they exist.
MFC after: 1 week
Sponsored by: DARPA, AFRL
Notes
Notes:
svn path=/head/; revision=307961
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/arm64/mp_machdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c index 4361cef888a1..4904e6b6a4a1 100644 --- a/sys/arm64/arm64/mp_machdep.c +++ b/sys/arm64/arm64/mp_machdep.c @@ -203,6 +203,10 @@ release_aps(void *dummy __unused) { int i; + /* Only release CPUs if they exist */ + if (mp_ncpus == 1) + return; + intr_pic_ipi_setup(IPI_AST, "ast", ipi_ast, NULL); intr_pic_ipi_setup(IPI_PREEMPT, "preempt", ipi_preempt, NULL); intr_pic_ipi_setup(IPI_RENDEZVOUS, "rendezvous", ipi_rendezvous, NULL); |