Date: Wed, 26 Oct 2016 12:30:53 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r307961 - head/sys/arm64/arm64 Message-ID: <201610261230.u9QCUrR2017261@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Wed Oct 26 12:30:53 2016 New Revision: 307961 URL: https://svnweb.freebsd.org/changeset/base/307961 Log: Only release CPUs when they exist. MFC after: 1 week Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/mp_machdep.c Modified: head/sys/arm64/arm64/mp_machdep.c ============================================================================== --- head/sys/arm64/arm64/mp_machdep.c Wed Oct 26 12:29:56 2016 (r307960) +++ head/sys/arm64/arm64/mp_machdep.c Wed Oct 26 12:30:53 2016 (r307961) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610261230.u9QCUrR2017261>