Skip to content

Commit bc469dd

Browse files
Zucheng ZhengPeter Zijlstra
authored andcommitted
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
1 parent 9cb23f5 commit bc469dd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/x86/events/amd/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,14 +771,11 @@ static void amd_pmu_enable_event(struct perf_event *event)
771771
static void amd_pmu_enable_all(int added)
772772
{
773773
struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
774-
struct hw_perf_event *hwc;
775774
int idx;
776775

777776
amd_brs_enable_all();
778777

779778
for (idx = 0; idx < x86_pmu.num_counters; idx++) {
780-
hwc = &cpuc->events[idx]->hw;
781-
782779
/* only activate events which are marked as active */
783780
if (!test_bit(idx, cpuc->active_mask))
784781
continue;

0 commit comments

Comments
 (0)