Skip to content

Commit b1121e2

Browse files
chenhuacairafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent e73f0f0 commit b1121e2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

drivers/acpi/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ config ACPI_CPPC_LIB
280280

281281
config ACPI_PROCESSOR
282282
tristate "Processor"
283-
depends on X86 || IA64 || ARM64
283+
depends on X86 || IA64 || ARM64 || LOONGARCH
284284
select ACPI_PROCESSOR_IDLE
285-
select ACPI_CPU_FREQ_PSS if X86 || IA64
285+
select ACPI_CPU_FREQ_PSS if X86 || IA64 || LOONGARCH
286286
default y
287287
help
288288
This driver adds support for the ACPI Processor package. It is required

drivers/acpi/numa/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
config ACPI_NUMA
33
bool "NUMA support"
44
depends on NUMA
5-
depends on (X86 || IA64 || ARM64)
5+
depends on (X86 || IA64 || ARM64 || LOONGARCH)
66
default y if IA64 || ARM64
77

88
config ACPI_HMAT

drivers/acpi/numa/srat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ int __init srat_disabled(void)
206206
return acpi_numa < 0;
207207
}
208208

209-
#if defined(CONFIG_X86) || defined(CONFIG_ARM64)
209+
#if defined(CONFIG_X86) || defined(CONFIG_ARM64) || defined(CONFIG_LOONGARCH)
210210
/*
211211
* Callback for SLIT parsing. pxm_to_node() returns NUMA_NO_NODE for
212212
* I/O localities since SRAT does not list them. I/O localities are

include/linux/acpi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void acpi_table_print_madt_entry (struct acpi_subtable_header *madt);
249249
/* the following numa functions are architecture-dependent */
250250
void acpi_numa_slit_init (struct acpi_table_slit *slit);
251251

252-
#if defined(CONFIG_X86) || defined(CONFIG_IA64)
252+
#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_LOONGARCH)
253253
void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa);
254254
#else
255255
static inline void

0 commit comments

Comments
 (0)