[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <165229841634.4207.1052240336880939148.tip-bot2@tip-bot2>
Date: Wed, 11 May 2022 19:46:56 -0000
From: "tip-bot2 for Zucheng Zheng" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: "Peter Zijlstra (Intel)" <peterz@...radead.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: perf/core] perf/x86/amd: Remove unused variable 'hwc'
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 2cc6edea3673e38fa96df5cf8a62ddc8b27c7217
Gitweb: https://git.kernel.org/tip/2cc6edea3673e38fa96df5cf8a62ddc8b27c7217
Author: Zucheng Zheng <zhengzucheng@...wei.com>
AuthorDate: Thu, 21 Apr 2022 19:10:31 +08:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Wed, 11 May 2022 16:27:11 +02:00
perf/x86/amd: Remove unused variable 'hwc'
'hwc' is never used in amd_pmu_enable_all(), so remove it.
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Link: https://lkml.kernel.org/r/20220421111031.174698-1-zhengzucheng@huawei.com
---
arch/x86/events/amd/core.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/x86/events/amd/core.c b/arch/x86/events/amd/core.c
index 262e39a..d81eac2 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;
Powered by blists - more mailing lists