drivers/perf: hisi: Use ACPI driver_data to retrieve SLLC PMU information
authorJunhao He <hejunhao3@huawei.com>
Thu, 19 Jun 2025 12:55:52 +0000 (20:55 +0800)
committerWill Deacon <will@kernel.org>
Mon, 14 Jul 2025 14:42:16 +0000 (15:42 +0100)
commit29614c55fe6ff8e5ddee9c6247d5c3dbe05ca8bc
tree9d97eebb1c46435afd23b92a8433ff79ddd14a3f
parent17aa34e86936d0dba4e7c05c55ffc3e12c0ccec9
drivers/perf: hisi: Use ACPI driver_data to retrieve SLLC PMU information

Make use of struct acpi_device_id::driver_data for version specific
information rather than judge the version register. This will help
to simplify the probe process and also a bit easier for extension.

Factor out SLLC register definition to struct hisi_sllc_pmu_regs.
No functional changes intended.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Junhao He <hejunhao3@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20250619125557.57372-4-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c