diff options
author | Zucheng Zheng <zhengzucheng@huawei.com> | 2022-04-21 19:10:31 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-05-12 16:28:46 +0200 |
commit | bc469ddf67154a4840267132e87ce0d8b72d4952 (patch) | |
tree | ccba135cd89a41b0c4960dfd0eb16c98ded1e35d /arch/x86/events | |
parent | 9cb23f598c641c1dcbe18defd219cdc439bc94a8 (diff) | |
download | linux-bc469ddf67154a4840267132e87ce0d8b72d4952.tar.bz2 |
perf/x86/amd: Remove unused variable 'hwc'
'hwc' is never used in amd_pmu_enable_all(), so remove it.
Signed-off-by: Zucheng Zheng <zhengzucheng@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220421111031.174698-1-zhengzucheng@huawei.com
Diffstat (limited to 'arch/x86/events')
-rw-r--r-- | arch/x86/events/amd/core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/events/amd/core.c b/arch/x86/events/amd/core.c index 262e39a85031..d81eac2284ea 100644 --- a/arch/x86/events/amd/core.c +++ b/arch/x86/events/amd/core.c @@ -771,14 +771,11 @@ static void amd_pmu_enable_event(struct perf_event *event) static void amd_pmu_enable_all(int added) { struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); - struct hw_perf_event *hwc; int idx; amd_brs_enable_all(); for (idx = 0; idx < x86_pmu.num_counters; idx++) { - hwc = &cpuc->events[idx]->hw; - /* only activate events which are marked as active */ if (!test_bit(idx, cpuc->active_mask)) continue; |