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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to