Skip to content

Commit 2cdcf06

Browse files
committed
perf/x86/rapl: Remove the unused get_rapl_pmu_cpumask() function
JIRA: https://issues.redhat.com/browse/RHEL-77935 upstream ======== commit 2f2db34 Author: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com> Date: Fri Nov 15 06:07:57 2024 +0000 description =========== commit 9e9af8b ("perf/x86/rapl: Clean up cpumask and hotplug") removes the cpumask handling from rapl. Post that, we no longer need the get_rapl_pmu_cpumask() function. So remove it. Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Zhang Rui <rui.zhang@intel.com> Tested-by: Zhang Rui <rui.zhang@intel.com> Link: https://lore.kernel.org/r/20241115060805.447565-2-Dhananjay.Ugwekar@amd.com Signed-off-by: Michael Petlan <mpetlan@redhat.com>
1 parent 324d7a6 commit 2cdcf06

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

arch/x86/events/rapl.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static u64 rapl_timer_ms;
153153
static struct perf_msr *rapl_msrs;
154154

155155
/*
156-
* Helper functions to get the correct topology macros according to the
156+
* Helper function to get the correct topology id according to the
157157
* RAPL PMU scope.
158158
*/
159159
static inline unsigned int get_rapl_pmu_idx(int cpu)
@@ -162,12 +162,6 @@ static inline unsigned int get_rapl_pmu_idx(int cpu)
162162
topology_logical_die_id(cpu);
163163
}
164164

165-
static inline const struct cpumask *get_rapl_pmu_cpumask(int cpu)
166-
{
167-
return rapl_pmu_is_pkg_scope() ? topology_core_cpumask(cpu) :
168-
topology_die_cpumask(cpu);
169-
}
170-
171165
static inline struct rapl_pmu *cpu_to_rapl_pmu(unsigned int cpu)
172166
{
173167
unsigned int rapl_pmu_idx = get_rapl_pmu_idx(cpu);

0 commit comments

Comments
 (0)