arm64, irqchip/gic-v3, ACPI: Move MADT GICC enabled check into a helper
authorJames Morse <james.morse@arm.com>
Mon, 23 Oct 2023 13:35:03 +0000 (14:35 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 24 Oct 2023 14:12:09 +0000 (15:12 +0100)
commitc54e52f84d7aa590e90e1f73f462517ac40051e1
tree6a7a39e764d1586bbd00caa0bb728e8bde6b9b62
parent851354cbd12bb9500909733c3d4054306f61df87
arm64, irqchip/gic-v3, ACPI: Move MADT GICC enabled check into a helper

ACPI, irqchip and the architecture code all inspect the MADT
enabled bit for a GICC entry in the MADT.

The addition of an 'online capable' bit means all these sites need
updating.

Move the current checks behind a helper to make future updates easier.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Acked-by: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/E1quv5D-00AeNJ-U8@rmk-PC.armlinux.org.uk
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/smp.c
drivers/acpi/processor_core.c
drivers/irqchip/irq-gic-v3.c
include/linux/acpi.h