Skip to content

Commit

Permalink
arm64: pmu: Hoist pmu platform device name
Browse files Browse the repository at this point in the history
Move the PMU name into a common header file so it may
be referenced by other users.

Signed-off-by: Jeremy Linton <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
  • Loading branch information
jlintonarm authored and wildea01 committed Sep 16, 2016
1 parent 236b9b9 commit 85023b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions include/linux/perf/arm_pmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

0 comments on commit 85023b2

Please sign in to comment.