]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
acpi_cpu: Make device unit numbers match OS CPU IDs.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 25 Sep 2021 01:03:02 +0000 (21:03 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 4 Jan 2022 17:21:35 +0000 (12:21 -0500)
commit083a2ff0f0328199bc79eee82e301c7896cb58ff
tree07a4eead69bc9e6eb9c9d445b80cd024417abd32
parentd97bfe3ff8404e04dada9d7b86d8379d4713c2e8
acpi_cpu: Make device unit numbers match OS CPU IDs.

There are already APIC ID, ACPI ID and OS ID for each CPU.  In perfect
world all of those may match, but at least for SuperMicro server boards
none of them do.  Plus none of them match the CPU devices listing order
by ACPI.  Previous code used the ACPI device listing order to number
cpuX devices.  It looked nice from NewBus perspective, but introduced
4th different set of IDs. Extremely confusing one, since in some places
the device unit numbers were treated as OS CPU IDs (coretemp), but not
in others (sysctl dev.cpu.X.%location).

(cherry picked from commit c8077ccd70cfcbcccb752e89b848f098abcb9309)
share/man/man4/acpi.4
sys/dev/acpica/acpi_cpu.c