Commit 70360fad authored by James Clark's avatar James Clark Committed by Namhyung Kim

perf pmu: Remove unused function

pmu_events_table__find() is no longer used so remove it and its Arm
specific version.
Signed-off-by: default avatarJames Clark <james.clark@arm.com>
Reviewed-by: default avatarIan Rogers <irogers@google.com>
Reviewed-by: default avatarJohn Garry <john.g.garry@oracle.com>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Will Deacon <will@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Jing Zhang <renyu.zj@linux.alibaba.com>
Cc: Haixin Yu <yuhaixin.yhx@linux.alibaba.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230913153355.138331-4-james.clark@arm.comSigned-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 105e5b43
...@@ -24,16 +24,6 @@ const struct pmu_metrics_table *pmu_metrics_table__find(void) ...@@ -24,16 +24,6 @@ const struct pmu_metrics_table *pmu_metrics_table__find(void)
return NULL; return NULL;
} }
const struct pmu_events_table *pmu_events_table__find(void)
{
struct perf_pmu *pmu = perf_pmus__find_core_pmu();
if (pmu)
return perf_pmu__find_events_table(pmu);
return NULL;
}
double perf_pmu__cpu_slots_per_cycle(void) double perf_pmu__cpu_slots_per_cycle(void)
{ {
char path[PATH_MAX]; char path[PATH_MAX];
......
...@@ -776,11 +776,6 @@ char *perf_pmu__getcpuid(struct perf_pmu *pmu) ...@@ -776,11 +776,6 @@ char *perf_pmu__getcpuid(struct perf_pmu *pmu)
return cpuid; return cpuid;
} }
__weak const struct pmu_events_table *pmu_events_table__find(void)
{
return perf_pmu__find_events_table(NULL);
}
__weak const struct pmu_metrics_table *pmu_metrics_table__find(void) __weak const struct pmu_metrics_table *pmu_metrics_table__find(void)
{ {
return perf_pmu__find_metrics_table(NULL); return perf_pmu__find_metrics_table(NULL);
......
...@@ -238,7 +238,6 @@ void pmu_add_cpu_aliases_table(struct perf_pmu *pmu, ...@@ -238,7 +238,6 @@ void pmu_add_cpu_aliases_table(struct perf_pmu *pmu,
const struct pmu_events_table *table); const struct pmu_events_table *table);
char *perf_pmu__getcpuid(struct perf_pmu *pmu); char *perf_pmu__getcpuid(struct perf_pmu *pmu);
const struct pmu_events_table *pmu_events_table__find(void);
const struct pmu_metrics_table *pmu_metrics_table__find(void); const struct pmu_metrics_table *pmu_metrics_table__find(void);
int perf_pmu__convert_scale(const char *scale, char **end, double *sval); int perf_pmu__convert_scale(const char *scale, char **end, double *sval);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment