drivers/perf: hisi: Permit modular builds of HiSilicon uncore drivers
authorZhou Wang <wangzhou1@hisilicon.com>
Thu, 7 May 2020 02:58:25 +0000 (10:58 +0800)
committerWill Deacon <will@kernel.org>
Mon, 18 May 2020 17:18:39 +0000 (18:18 +0100)
commit97807325a02b41de2f641d98dda1041549a23cd8
treea763c6e3fbc7b86983a743b76b55a173d972c984
parent88562f06ebf56587788783e5420f25fde3ca36c8
drivers/perf: hisi: Permit modular builds of HiSilicon uncore drivers

This patch lets HiSilicon uncore PMU driver can be built as modules.
A common module and three specific uncore PMU driver modules will be built.

Export necessary functions in hisi_uncore_pmu module, and change
irq_set_affinity to irq_set_affinity_hint to pass compile.

Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Tested-by: Qi Liu <liuqi115@huawei.com>
Reviewed-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Link: https://lore.kernel.org/r/1588820305-174479-1-git-send-email-wangzhou1@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/Kconfig
drivers/perf/hisilicon/Kconfig [new file with mode: 0644]
drivers/perf/hisilicon/Makefile
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_pmu.c