ACPI / tables: Add acpi_subtable_proc to ACPI table parsers
authorLukasz Anaczkowski <lukasz.anaczkowski@intel.com>
Wed, 9 Sep 2015 13:47:28 +0000 (15:47 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Oct 2015 23:29:39 +0000 (01:29 +0200)
commit9b3fedde27d3d63055c43c05e8254e252e58ba48
tree0ce3f5e0b33bc55ecb395fd4644058086c17da97
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ACPI / tables: Add acpi_subtable_proc to ACPI table parsers

ACPI subtable parsing needs to be extended to allow two or more
handlers to be run in the same ACPI table walk, thus adding
acpi_subtable_proc structure which stores
 () ACPI table id
 () handler that processes table
 () counter how many items has been processed
and passing it to acpi_parse_entries_array() and
acpi_table_parse_entries_array().

This is needed to fix CPU enumeration when APIC/X2APIC entries
are interleaved.

Signed-off-by: Lukasz Anaczkowski <lukasz.anaczkowski@intel.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/tables.c
include/linux/acpi.h