]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf: xgene: Move PMU leaf functions into function pointer structure
authorHoan Tran <hotran@apm.com>
Thu, 22 Jun 2017 18:26:04 +0000 (19:26 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 22 Jun 2017 19:16:18 +0000 (20:16 +0100)
commite35e0a04a9965bcb4fffe4375baaecd408ad2357
tree6ccb568a1bebe6955be0538099f32711acbbc655
parent838955e2a3c010aff9089fd705ae2cd5638cdee8
perf: xgene: Move PMU leaf functions into function pointer structure

This patch moves PMU leaf functions into a function pointer structure.
It helps code maintain and expasion easier.

Signed-off-by: Hoan Tran <hotran@apm.com>
[Mark: remove redundant cast]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[will: make xgene_pmu_ops static]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/xgene_pmu.c