[PATCH 0/2] Minor fix and cleanup for hisi_pcie_pmu

From: Yicong Yang
Date: Tue Oct 24 2023 - 05:34:38 EST


From: Yicong Yang <yangyicong@xxxxxxxxxxxxx>

This patchset includes 2 minor updates for the hisi_pcie_pmu:
- fix issue that we may touch others events in some case
- modify the event->cpu only on the success pmu::event_init()

Yicong Yang (2):
drivers/perf: hisi_pcie: Check the type first in pmu::event_init()
drivers/perf: hisi_pcie: Initialize event->cpu only on success

drivers/perf/hisilicon/hisi_pcie_pmu.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

--
2.24.0