projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb23f5
)
perf/x86/amd: Remove unused variable 'hwc'
author
Zucheng Zheng
<zhengzucheng@huawei.com>
Thu, 21 Apr 2022 11:10:31 +0000
(19:10 +0800)
committer
Peter Zijlstra
<peterz@infradead.org>
Thu, 12 May 2022 14:28:46 +0000
(16:28 +0200)
'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
arch/x86/events/amd/core.c
patch
|
blob
|
history
diff --git
a/arch/x86/events/amd/core.c
b/arch/x86/events/amd/core.c
index 262e39a850316793cd27c7c946ea126be1d30d3d..d81eac2284eadfaf5d5f4959a2c9ed1a66aa5e38 100644
(file)
--- 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;