Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: Add LoongArch support for ACPI_PROCESSOR/ACPI_NUMA

We are preparing to add new Loongson (based on LoongArch, not MIPS)
support. LoongArch use ACPI other than DT as its boot protocol, so
add its support for ACPI_PROCESSOR/ACPI_NUMA.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Huacai Chen and committed by
Rafael J. Wysocki
b1121e2a e73f0f0e

+5 -5
+2 -2
drivers/acpi/Kconfig
··· 280 280 281 281 config ACPI_PROCESSOR 282 282 tristate "Processor" 283 - depends on X86 || IA64 || ARM64 283 + depends on X86 || IA64 || ARM64 || LOONGARCH 284 284 select ACPI_PROCESSOR_IDLE 285 - select ACPI_CPU_FREQ_PSS if X86 || IA64 285 + select ACPI_CPU_FREQ_PSS if X86 || IA64 || LOONGARCH 286 286 default y 287 287 help 288 288 This driver adds support for the ACPI Processor package. It is required
+1 -1
drivers/acpi/numa/Kconfig
··· 2 2 config ACPI_NUMA 3 3 bool "NUMA support" 4 4 depends on NUMA 5 - depends on (X86 || IA64 || ARM64) 5 + depends on (X86 || IA64 || ARM64 || LOONGARCH) 6 6 default y if IA64 || ARM64 7 7 8 8 config ACPI_HMAT
+1 -1
drivers/acpi/numa/srat.c
··· 206 206 return acpi_numa < 0; 207 207 } 208 208 209 - #if defined(CONFIG_X86) || defined(CONFIG_ARM64) 209 + #if defined(CONFIG_X86) || defined(CONFIG_ARM64) || defined(CONFIG_LOONGARCH) 210 210 /* 211 211 * Callback for SLIT parsing. pxm_to_node() returns NUMA_NO_NODE for 212 212 * I/O localities since SRAT does not list them. I/O localities are
+1 -1
include/linux/acpi.h
··· 249 249 /* the following numa functions are architecture-dependent */ 250 250 void acpi_numa_slit_init (struct acpi_table_slit *slit); 251 251 252 - #if defined(CONFIG_X86) || defined(CONFIG_IA64) 252 + #if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_LOONGARCH) 253 253 void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa); 254 254 #else 255 255 static inline void