summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>2016-03-04 12:04:54 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:58:08 -0700
commit0c718959c8264db200f6e8bbdd417c4cc6cadf38 (patch)
treeeedcfbb94c0ef5249d5fc9f94b4f52eca6319e8e /include/linux
parentf587e38fb3b6786caaa70b98bde8197ad23a0191 (diff)
qcom: fix kryo CPU PMU functional issues on kernel 4.4
While porting kryo CPU PMU driver to kernel 4.4, some functionality got dropped unintentionally. This commit adds the dropped functionality back. Also, update driver to be compliant to kernel 4.4. Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/perf/arm_pmu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/perf/arm_pmu.h b/include/linux/perf/arm_pmu.h
index dd3ea60948a8..f7bbce527649 100644
--- a/include/linux/perf/arm_pmu.h
+++ b/include/linux/perf/arm_pmu.h
@@ -111,6 +111,11 @@ struct arm_pmu {
#define to_arm_pmu(p) (container_of(p, struct arm_pmu, pmu))
+extern const unsigned armv8_pmuv3_perf_map[PERF_COUNT_HW_MAX];
+extern const unsigned armv8_pmuv3_perf_cache_map[PERF_COUNT_HW_CACHE_MAX]
+ [PERF_COUNT_HW_CACHE_OP_MAX]
+ [PERF_COUNT_HW_CACHE_RESULT_MAX];
+
int armpmu_register(struct arm_pmu *armpmu, int type);
u64 armpmu_event_update(struct perf_event *event);
@@ -149,6 +154,7 @@ int arm_pmu_device_probe(struct platform_device *pdev,
const struct of_device_id *of_table,
const struct pmu_probe_info *probe_table);
+void armv8_pmu_init(struct arm_pmu *cpu_pmu);
int armv8pmu_enable_intens(int idx);
int armv8pmu_disable_intens(int idx);
int armv8pmu_enable_counter(int idx);