aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/perf/qcom_l2_pmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/perf/qcom_l2_pmu.c')
-rw-r--r--drivers/perf/qcom_l2_pmu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/perf/qcom_l2_pmu.c b/drivers/perf/qcom_l2_pmu.c
index 842135cf35a3..091b4d7d32c4 100644
--- a/drivers/perf/qcom_l2_pmu.c
+++ b/drivers/perf/qcom_l2_pmu.c
@@ -509,14 +509,6 @@ static int l2_cache_event_init(struct perf_event *event)
509 return -EOPNOTSUPP; 509 return -EOPNOTSUPP;
510 } 510 }
511 511
512 /* We cannot filter accurately so we just don't allow it. */
513 if (event->attr.exclude_user || event->attr.exclude_kernel ||
514 event->attr.exclude_hv || event->attr.exclude_idle) {
515 dev_dbg_ratelimited(&l2cache_pmu->pdev->dev,
516 "Can't exclude execution levels\n");
517 return -EOPNOTSUPP;
518 }
519
520 if (((L2_EVT_GROUP(event->attr.config) > L2_EVT_GROUP_MAX) || 512 if (((L2_EVT_GROUP(event->attr.config) > L2_EVT_GROUP_MAX) ||
521 ((event->attr.config & ~L2_EVT_MASK) != 0)) && 513 ((event->attr.config & ~L2_EVT_MASK) != 0)) &&
522 (event->attr.config != L2CYCLE_CTR_RAW_CODE)) { 514 (event->attr.config != L2CYCLE_CTR_RAW_CODE)) {
@@ -982,6 +974,7 @@ static int l2_cache_pmu_probe(struct platform_device *pdev)
982 .stop = l2_cache_event_stop, 974 .stop = l2_cache_event_stop,
983 .read = l2_cache_event_read, 975 .read = l2_cache_event_read,
984 .attr_groups = l2_cache_pmu_attr_grps, 976 .attr_groups = l2_cache_pmu_attr_grps,
977 .capabilities = PERF_PMU_CAP_NO_EXCLUDE,
985 }; 978 };
986 979
987 l2cache_pmu->num_counters = get_num_counters(); 980 l2cache_pmu->num_counters = get_num_counters();