OSDN Git Service

ACPI: processor: LoongArch: Get physical ID from MADT
authorBibo Mao <maobibo@loongson.cn>
Mon, 17 Jul 2023 02:22:58 +0000 (10:22 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 16:39:28 +0000 (18:39 +0200)
commitf6fcf03ce8a9b8c135cf47f4978617bdf2829711
treec111ef124ff73541e0d6454521674ae6c46cc90d
parent003e0694fcd3d51ee2d55dafb2def501f9965cbd
ACPI: processor: LoongArch: Get physical ID from MADT

With ACPI Spec 6.5 chapter 5.2.12.20, each processor in LoongArch
systems has a Core Programmable Interrupt Controller in MADT. The
value of its type is 0x11 in the spec and defined as enum variable
ACPI_MADT_TYPE_CORE_PIC in the Linux kernel.

Physical IDs can be retrieved from MADT for LoongArch systems during
initialization and they can be retrieved from the _MAT output for
hotplug CPUs.

Add physical CPU ID enumeration for LoongArch systems.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_core.c