OSDN Git Service

ACPI: processor_core: RISC-V: Enable mapping processor to the hartid
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 15 May 2023 05:49:14 +0000 (11:19 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 1 Jun 2023 15:45:02 +0000 (08:45 -0700)
commit8b7809e289524e02f8f0755ca632ea9e9aefbd0e
tree8f0ff5deac7509dd2e444480f42b832436a33142
parenta91a9ffbd3a55a0ae1bb75e2b6e85b2a03f64e8f
ACPI: processor_core: RISC-V: Enable mapping processor to the hartid

processor_core needs arch-specific functions to map the ACPI ID
to the physical ID. In RISC-V platforms, hartid is the physical id
and RINTC structure in MADT provides this mapping. Add arch-specific
function to get this mapping from RINTC.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20230515054928.2079268-8-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/acpi.h
drivers/acpi/processor_core.c