diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2024-01-17 07:43:08 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-01-17 07:43:08 +0300 |
commit | ce68ff3528e6eff4a1a4770600ec6c66779ba7b9 (patch) | |
tree | 68e2a79568120fc88a3b99f4a1ce827002eb6599 /arch/loongarch/kernel/acpi.c | |
parent | d23b77953f5a4fbf94c05157b186aac2a247ae32 (diff) | |
download | linux-ce68ff3528e6eff4a1a4770600ec6c66779ba7b9.tar.xz |
LoongArch: Let cores_io_master cover the largest NR_CPUS
Now loongson_system_configuration::cores_io_master only covers 64 cpus,
if NR_CPUS > 64 there will be memory corruption. So let cores_io_master
cover the largest NR_CPUS (256).
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/kernel/acpi.c')
-rw-r--r-- | arch/loongarch/kernel/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/acpi.c b/arch/loongarch/kernel/acpi.c index 8e00a754e548..b6b097bbf866 100644 --- a/arch/loongarch/kernel/acpi.c +++ b/arch/loongarch/kernel/acpi.c @@ -119,7 +119,7 @@ acpi_parse_eio_master(union acpi_subtable_headers *header, const unsigned long e return -EINVAL; core = eiointc->node * CORES_PER_EIO_NODE; - set_bit(core, &(loongson_sysconf.cores_io_master)); + set_bit(core, loongson_sysconf.cores_io_master); return 0; } |