perf: hisi: Extract hisi_pmu_init
authorChen Jun <chenjun102@huawei.com>
Mon, 16 May 2022 13:16:01 +0000 (13:16 +0000)
committerWill Deacon <will@kernel.org>
Mon, 27 Jun 2022 10:14:54 +0000 (11:14 +0100)
commite500405dd15d956790859fa532c64d8186445372
tree9277a81014b3e03827d8b84effc49a0a6e06dfc5
parentf5ebeb138fa6eb62d90264f9619019aa8c926a22
perf: hisi: Extract hisi_pmu_init

Extract the initialization code of hisi_pmu->pmu into a function

Signed-off-by: Chen Jun <chenjun102@huawei.com>
Link: https://lore.kernel.org/r/20220516131601.48383-1-chenjun102@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c
drivers/perf/hisilicon/hisi_uncore_hha_pmu.c
drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c
drivers/perf/hisilicon/hisi_uncore_pa_pmu.c
drivers/perf/hisilicon/hisi_uncore_pmu.c
drivers/perf/hisilicon/hisi_uncore_pmu.h
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c