projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c3f791
)
sh: Get rid of oprofile leftovers
author
Marc Zyngier
<maz@kernel.org>
Wed, 14 Apr 2021 13:44:08 +0000
(14:44 +0100)
committer
Marc Zyngier
<maz@kernel.org>
Thu, 22 Apr 2021 12:32:39 +0000
(13:32 +0100)
perf_pmu_name() and perf_num_counters() are unused. Drop them.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link:
https://lore.kernel.org/r/20210414134409.1266357-5-maz@kernel.org
arch/sh/kernel/perf_event.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/perf_event.c
b/arch/sh/kernel/perf_event.c
index 445e3ece4c23e6715de677c690661d9023a82c6a..1d2507f2243723b0c34cde0c41bd7389a3da65e7 100644
(file)
--- a/
arch/sh/kernel/perf_event.c
+++ b/
arch/sh/kernel/perf_event.c
@@
-57,24
+57,6
@@
static inline int sh_pmu_initialized(void)
return !!sh_pmu;
}
-const char *perf_pmu_name(void)
-{
- if (!sh_pmu)
- return NULL;
-
- return sh_pmu->name;
-}
-EXPORT_SYMBOL_GPL(perf_pmu_name);
-
-int perf_num_counters(void)
-{
- if (!sh_pmu)
- return 0;
-
- return sh_pmu->num_events;
-}
-EXPORT_SYMBOL_GPL(perf_num_counters);
-
/*
* Release the PMU if this is the last perf_event.
*/