-/* $OpenBSD: acpi_machdep.c,v 1.99 2022/02/12 16:25:42 deraadt Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.100 2022/02/13 15:56:55 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
{
int i;
- sched_stop_secondary_cpus();
- KASSERT(CPU_IS_PRIMARY(curcpu()));
-
/*
* Wait for cpus to halt so we know their FPU state has been
* saved and their caches have been written back.
ci->ci_flags &= ~CPUF_PRESENT;
cpu_start_secondary(ci);
}
-
cpu_boot_secondary_processors();
- sched_start_secondary_cpus();
}
#endif /* MULTIPROCESSOR */
-/* $OpenBSD: acpi_machdep.c,v 1.81 2022/02/12 16:26:57 deraadt Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.82 2022/02/13 15:56:55 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
{
int i;
- sched_stop_secondary_cpus();
- KASSERT(CPU_IS_PRIMARY(curcpu()));
-
/*
* Wait for cpus to halt so we know their FPU state has been
* saved and their caches have been written back.
ci->ci_idepth = 0;
}
-
cpu_boot_secondary_processors();
- sched_start_secondary_cpus();
}
#endif /* MULTIPROCESSOR */
-/* $OpenBSD: subr_suspend.c,v 1.3 2022/02/11 01:55:12 deraadt Exp $ */
+/* $OpenBSD: subr_suspend.c,v 1.4 2022/02/13 15:56:55 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
#ifdef MULTIPROCESSOR
+ sched_stop_secondary_cpus();
+ KASSERT(CPU_IS_PRIMARY(curcpu()));
sleep_mp();
#endif
#ifdef MULTIPROCESSOR
resume_mp();
+ sched_start_secondary_cpus();
#endif
vfs_stall(curproc, 0);