Skip to content

Commit 4e15bcf

Browse files
Junhao Hewilldeacon
authored andcommitted
drivers/perf: hisi: Fix incorrect variable name "hha_pmu" in DDRC PMU driver
In the callback function write_evtype(), the variable name of struct hisi_pmu should be "ddrc_pmu" instead of "hha_pmu". Signed-off-by: Junhao He <hejunhao3@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Yicong Yang <yangyicong@hisilicon.com> Link: https://lore.kernel.org/r/20241210141525.37788-10-yangyicong@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 3b051bb commit 4e15bcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ static void hisi_ddrc_pmu_v2_write_counter(struct hisi_pmu *ddrc_pmu,
111111
* so there is no need to write event type, while it is programmable counter in
112112
* PMU v2.
113113
*/
114-
static void hisi_ddrc_pmu_write_evtype(struct hisi_pmu *hha_pmu, int idx,
114+
static void hisi_ddrc_pmu_write_evtype(struct hisi_pmu *ddrc_pmu, int idx,
115115
u32 type)
116116
{
117117
u32 offset;
118118

119-
if (hha_pmu->identifier >= HISI_PMU_V2) {
119+
if (ddrc_pmu->identifier >= HISI_PMU_V2) {
120120
offset = DDRC_V2_EVENT_TYPE + 4 * idx;
121-
writel(type, hha_pmu->base + offset);
121+
writel(type, ddrc_pmu->base + offset);
122122
}
123123
}
124124

0 commit comments

Comments
 (0)