From aadb433981b086bfb4e082757fed1154582d5497 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 11 Feb 2024 12:00:57 +0000 Subject: smp: Create AP processor set and put all APs inside it This has the effect of running with one cpu only with smp, but has the ability to enable APs in userspace with the right processor set RPCs. Message-ID: <20240211120051.1889789-1-damien@zamaudio.com> --- kern/processor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kern/processor.h') diff --git a/kern/processor.h b/kern/processor.h index fc204ffa..747badf2 100644 --- a/kern/processor.h +++ b/kern/processor.h @@ -85,6 +85,9 @@ struct processor_set { long sched_load; /* load avg for scheduler */ }; extern struct processor_set default_pset; +#if MACH_HOST +extern struct processor_set *slave_pset; +#endif struct processor { struct run_queue runq; /* local runq for this processor */ -- cgit v1.2.3