summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/acpi.c
diff options
context:
space:
mode:
authorHaibo Xu <haibo1.xu@intel.com>2024-06-13 10:54:33 +0200
committerPalmer Dabbelt <palmer@rivosinc.com>2024-07-22 16:13:06 +0200
commiteabd9db64ea8ba64d2a0b1d70da38e1a95dcd08b (patch)
tree9ec6ab49d13c17dc915b7a6d2e3a6be8edd2fd3a /arch/riscv/kernel/acpi.c
parentLinux 6.10-rc1 (diff)
downloadlinux-eabd9db64ea8ba64d2a0b1d70da38e1a95dcd08b.tar.xz
linux-eabd9db64ea8ba64d2a0b1d70da38e1a95dcd08b.zip
ACPI: RISCV: Add NUMA support based on SRAT and SLIT
Add acpi_numa.c file to enable parse NUMA information from ACPI SRAT and SLIT tables. SRAT table provide CPUs(Hart) and memory nodes to proximity domain mapping, while SLIT table provide the distance metrics between proximity domains. Signed-off-by: Haibo Xu <haibo1.xu@intel.com> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com> Reviewed-by: Hanjun Guo <guohanjun@huawei.com> Link: https://lore.kernel.org/r/65dbad1fda08a32922c44886e4581e49b4a2fecc.1718268003.git.haibo1.xu@intel.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel/acpi.c')
-rw-r--r--arch/riscv/kernel/acpi.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/riscv/kernel/acpi.c b/arch/riscv/kernel/acpi.c
index e619edc8b0cc..040bdbfea2b4 100644
--- a/arch/riscv/kernel/acpi.c
+++ b/arch/riscv/kernel/acpi.c
@@ -191,11 +191,6 @@ struct acpi_madt_rintc *acpi_cpu_get_madt_rintc(int cpu)
return &cpu_madt_rintc[cpu];
}
-u32 get_acpi_id_for_cpu(int cpu)
-{
- return acpi_cpu_get_madt_rintc(cpu)->uid;
-}
-
/*
* __acpi_map_table() will be called before paging_init(), so early_ioremap()
* or early_memremap() should be called here to for ACPI table mapping.