arm64: Get rid of oprofile leftovers
perf_pmu_name() and perf_num_counters() are now unused. Drop them. Signed-off-by: Marc Zyngier <maz@kernel.org> Acked-by: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20210414134409.1266357-3-maz@kernel.org
This commit is contained in:
parent
5421db1be3
commit
e9c74a686a
|
@ -581,33 +581,6 @@ static const struct attribute_group armpmu_common_attr_group = {
|
||||||
.attrs = armpmu_common_attrs,
|
.attrs = armpmu_common_attrs,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Set at runtime when we know what CPU type we are. */
|
|
||||||
static struct arm_pmu *__oprofile_cpu_pmu;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Despite the names, these two functions are CPU-specific and are used
|
|
||||||
* by the OProfile/perf code.
|
|
||||||
*/
|
|
||||||
const char *perf_pmu_name(void)
|
|
||||||
{
|
|
||||||
if (!__oprofile_cpu_pmu)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
return __oprofile_cpu_pmu->name;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(perf_pmu_name);
|
|
||||||
|
|
||||||
int perf_num_counters(void)
|
|
||||||
{
|
|
||||||
int max_events = 0;
|
|
||||||
|
|
||||||
if (__oprofile_cpu_pmu != NULL)
|
|
||||||
max_events = __oprofile_cpu_pmu->num_events;
|
|
||||||
|
|
||||||
return max_events;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(perf_num_counters);
|
|
||||||
|
|
||||||
static int armpmu_count_irq_users(const int irq)
|
static int armpmu_count_irq_users(const int irq)
|
||||||
{
|
{
|
||||||
int cpu, count = 0;
|
int cpu, count = 0;
|
||||||
|
@ -979,9 +952,6 @@ int armpmu_register(struct arm_pmu *pmu)
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out_destroy;
|
goto out_destroy;
|
||||||
|
|
||||||
if (!__oprofile_cpu_pmu)
|
|
||||||
__oprofile_cpu_pmu = pmu;
|
|
||||||
|
|
||||||
pr_info("enabled with %s PMU driver, %d counters available%s\n",
|
pr_info("enabled with %s PMU driver, %d counters available%s\n",
|
||||||
pmu->name, pmu->num_events,
|
pmu->name, pmu->num_events,
|
||||||
has_nmi ? ", using NMIs" : "");
|
has_nmi ? ", using NMIs" : "");
|
||||||
|
|
Loading…
Reference in New Issue