acpi_cpu: Replace Giant with bus_topo_lock.

This commit is contained in:
Alexander Motin
2021-12-09 20:08:25 -05:00
parent 21e22be91a
commit de291c5d10
+2 -2
View File
@@ -447,7 +447,7 @@ acpi_cpu_postattach(void *unused __unused)
if (cpu_softc == NULL)
return;
mtx_lock(&Giant);
bus_topo_lock();
CPU_FOREACH(i) {
if ((sc = cpu_softc[i]) != NULL)
bus_generic_probe(sc->cpu_dev);
@@ -458,7 +458,7 @@ acpi_cpu_postattach(void *unused __unused)
attached = 1;
}
}
mtx_unlock(&Giant);
bus_topo_unlock();
if (attached) {
#ifdef EARLY_AP_STARTUP