git: de291c5d104a - main - acpi_cpu: Replace Giant with bus_topo_lock.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 01:09:25 UTC
The branch main has been updated by mav:
URL: https://cgit.FreeBSD.org/src/commit/?id=de291c5d104a82dc66415a8d01bbceb4d4f93f38
commit de291c5d104a82dc66415a8d01bbceb4d4f93f38
Author: Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-10 01:08:25 +0000
Commit: Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-10 01:08:25 +0000
acpi_cpu: Replace Giant with bus_topo_lock.
---
sys/dev/acpica/acpi_cpu.c | 4 ++--
1 file 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