Only release CPUs when they exist.

MFC after:	1 week
Sponsored by:	DARPA, AFRL
This commit is contained in:
andrew 2016-10-26 12:30:53 +00:00
parent c8fd0bbfcc
commit c825d2846d

View File

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