Commit bc469ddf authored by Zucheng Zheng's avatar Zucheng Zheng Committed by Peter Zijlstra
Browse files

perf/x86/amd: Remove unused variable 'hwc'



'hwc' is never used in amd_pmu_enable_all(), so remove it.

Signed-off-by: default avatarZucheng Zheng <zhengzucheng@huawei.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220421111031.174698-1-zhengzucheng@huawei.com
parent 9cb23f59
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;