From 608c720a8ef9ed80d650dc4a38582267e2a6c258 Mon Sep 17 00:00:00 2001 From: Damien Zammit via Bug reports for the GNU Hurd Date: Sun, 22 Dec 2024 01:43:28 +0000 Subject: smp: Parallel SMP init Now that things are in place, we switch to parallel init. The key to this change is that the INIT/STARTUP sequence is done in one step, and all cpus wake up at the same time. Synchronisation is done via waiting for individual flags stored in separate memory locations. Message-ID: <20241222014306.430098-2-damien@zamaudio.com> --- kern/processor.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'kern/processor.c') diff --git a/kern/processor.c b/kern/processor.c index 0e42fa37..ba82ca2a 100644 --- a/kern/processor.c +++ b/kern/processor.c @@ -452,11 +452,7 @@ kern_return_t processor_start( { if (processor == PROCESSOR_NULL) return KERN_INVALID_ARGUMENT; -#if NCPUS > 1 - return cpu_start(processor->slot_num); -#else /* NCPUS > 1 */ return KERN_FAILURE; -#endif /* NCPUS > 1 */ } kern_return_t processor_exit( -- cgit v1.2.3