]> 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>
Sat, 25 Sep 2021 01:24:19 +0000 (21:24 -0400)
commitc8077ccd70cfcbcccb752e89b848f098abcb9309
treef773103bde7e04a263a96c80586a2378abbe8c91
parentdc9260515449cde9a4b26b5448f7386388c55bbd
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).
share/man/man4/acpi.4
sys/dev/acpica/acpi_cpu.c