arm64: pmu: Hoist pmu platform device name
authorJeremy Linton <jeremy.linton@arm.com>
Wed, 14 Sep 2016 22:32:31 +0000 (17:32 -0500)
committerWill Deacon <will.deacon@arm.com>
Fri, 16 Sep 2016 16:11:34 +0000 (17:11 +0100)
Move the PMU name into a common header file so it may
be referenced by other users.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c
include/linux/perf/arm_pmu.h

index 92dbe886cdf019994745a47a82a4cc7580f87988..a9310a69fffd4d453b760a15d16cc8e9cd1a90e8 100644 (file)
@@ -1111,7 +1111,7 @@ static int armv8_pmu_device_probe(struct platform_device *pdev)
 
 static struct platform_driver armv8_pmu_driver = {
        .driver         = {
-               .name   = "armv8-pmu",
+               .name   = ARMV8_PMU_PDEV_NAME,
                .of_match_table = armv8_pmu_of_device_ids,
        },
        .probe          = armv8_pmu_device_probe,
index dc1f2f30c961e3b0174527d75867df67c8f5878a..9ff07d3fc8de9791c96596d6e25a7b8bba64642e 100644 (file)
@@ -160,6 +160,8 @@ int arm_pmu_device_probe(struct platform_device *pdev,
                         const struct of_device_id *of_table,
                         const struct pmu_probe_info *probe_table);
 
+#define ARMV8_PMU_PDEV_NAME "armv8-pmu"
+
 #endif /* CONFIG_ARM_PMU */
 
 #endif /* __ARM_PMU_H__ */