Skip to content

Commit ff23f8c

Browse files
Marc Zyngierhcahca
authored andcommitted
s390: get rid of oprofile leftovers
perf_pmu_name() and perf_num_counters() are unused. Drop them. Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]>
1 parent 3e5ee32 commit ff23f8c

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

arch/s390/kernel/perf_event.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,6 @@
2323
#include <asm/sysinfo.h>
2424
#include <asm/unwind.h>
2525

26-
const char *perf_pmu_name(void)
27-
{
28-
if (cpum_cf_avail() || cpum_sf_avail())
29-
return "CPU-Measurement Facilities (CPU-MF)";
30-
return "pmu";
31-
}
32-
EXPORT_SYMBOL(perf_pmu_name);
33-
34-
int perf_num_counters(void)
35-
{
36-
int num = 0;
37-
38-
if (cpum_cf_avail())
39-
num += PERF_CPUM_CF_MAX_CTR;
40-
if (cpum_sf_avail())
41-
num += PERF_CPUM_SF_MAX_CTR;
42-
43-
return num;
44-
}
45-
EXPORT_SYMBOL(perf_num_counters);
46-
4726
static struct kvm_s390_sie_block *sie_block(struct pt_regs *regs)
4827
{
4928
struct stack_frame *stack = (struct stack_frame *) regs->gprs[15];

0 commit comments

Comments
 (0)