ARM64 / ACPI: Ignore the return error value of acpi_map_gic_cpu_interface()
authorHanjun Guo <hanjun.guo@linaro.org>
Fri, 27 Mar 2015 12:14:35 +0000 (12:14 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 31 Mar 2015 15:30:24 +0000 (16:30 +0100)
MADT scanning will stop when it gets an error from the handler,
acpi_map_gic_cpu_interface(), on arm64.  However, we need to
find all of the enabled CPUs so that SMP initialization can work
properly.  So, if an error occurs in this case, ignore it for
now so that we can find all of the enabled CPUs.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/acpi.c

index 07649e413244a39d8cb32784c5dca8badfeb2e0e..c263cbaa64848f8ddc1d7aecb95538fd64ccdc28 100644 (file)
@@ -181,7 +181,8 @@ acpi_parse_gic_cpu_interface(struct acpi_subtable_header *header,
                return -EINVAL;
 
        acpi_table_print_madt_entry(header);
-       return acpi_map_gic_cpu_interface(processor);
+       acpi_map_gic_cpu_interface(processor);
+       return 0;
 }
 
 /* Parse GIC cpu interface entries in MADT for SMP init */