svn commit: r307961 - head/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Wed Oct 26 12:30:55 UTC 2016


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);


More information about the svn-src-all mailing list