Only release CPUs when they exist.
MFC after: 1 week Sponsored by: DARPA, AFRL
This commit is contained in:
parent
c8fd0bbfcc
commit
c825d2846d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user