We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72b3912 commit b14e9ffCopy full SHA for b14e9ff
arch/loongarch/include/asm/acpi.h
@@ -32,8 +32,10 @@ static inline bool acpi_has_cpu_in_madt(void)
32
return true;
33
}
34
35
+#define MAX_CORE_PIC 256
36
+
37
extern struct list_head acpi_wakeup_device_list;
-extern struct acpi_madt_core_pic acpi_core_pic[NR_CPUS];
38
+extern struct acpi_madt_core_pic acpi_core_pic[MAX_CORE_PIC];
39
40
extern int __init parse_acpi_topology(void);
41
arch/loongarch/kernel/acpi.c
@@ -29,11 +29,9 @@ int disabled_cpus;
29
30
u64 acpi_saved_sp;
31
-#define MAX_CORE_PIC 256
-
#define PREFIX "ACPI: "
-struct acpi_madt_core_pic acpi_core_pic[NR_CPUS];
+struct acpi_madt_core_pic acpi_core_pic[MAX_CORE_PIC];
void __init __iomem * __acpi_map_table(unsigned long phys, unsigned long size)
{
0 commit comments