We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb23f5 commit bc469ddCopy full SHA for bc469dd
arch/x86/events/amd/core.c
@@ -771,14 +771,11 @@ static void amd_pmu_enable_event(struct perf_event *event)
771
static void amd_pmu_enable_all(int added)
772
{
773
struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
774
- struct hw_perf_event *hwc;
775
int idx;
776
777
amd_brs_enable_all();
778
779
for (idx = 0; idx < x86_pmu.num_counters; idx++) {
780
- hwc = &cpuc->events[idx]->hw;
781
-
782
/* only activate events which are marked as active */
783
if (!test_bit(idx, cpuc->active_mask))
784
continue;
0 commit comments