diff options
author | Alexander Motin <mav@FreeBSD.org> | 2021-12-10 01:08:25 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2021-12-10 01:08:25 +0000 |
commit | de291c5d104a82dc66415a8d01bbceb4d4f93f38 (patch) | |
tree | 2efcf0e6b187031c56d71c1b90806c0c9760f633 /sys | |
parent | 21e22be91aa0d77723f761b014a06f80e25e6291 (diff) | |
download | src-de291c5d104a82dc66415a8d01bbceb4d4f93f38.tar.gz src-de291c5d104a82dc66415a8d01bbceb4d4f93f38.zip |
acpi_cpu: Replace Giant with bus_topo_lock.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpica/acpi_cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index aac25af830ea..b1520368756f 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -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 |