arm_pmu: acpi: Refactor arm_spe_acpi_register_device()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 17 Aug 2023 05:54:02 +0000 (11:24 +0530)
committerWill Deacon <will@kernel.org>
Fri, 18 Aug 2023 17:07:09 +0000 (18:07 +0100)
commit81e5ee471609848ee1ebf3beb2a46788113fe0eb
tree1c2678eb246b0c4b3fa6e928d76e32a7cfd77e7c
parentd11a69873d9a7435fe6a48531e165ab80a8b1221
arm_pmu: acpi: Refactor arm_spe_acpi_register_device()

Sanity checking all the GICC tables for same interrupt number, and ensuring
a homogeneous ACPI based machine, could be used for other platform devices
as well. Hence this refactors arm_spe_acpi_register_device() into a common
helper arm_acpi_register_pmu_device().

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Co-developed-by: Will Deacon <will@kernel.org>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20230817055405.249630-2-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_pmu_acpi.c