[0/2] Minor fix and cleanup for hisi_pcie_pmu

Message ID 20231024092954.42297-1-yangyicong@huawei.com
Headers
Series Minor fix and cleanup for hisi_pcie_pmu |

Message

Yicong Yang Oct. 24, 2023, 9:29 a.m. UTC
  From: Yicong Yang <yangyicong@hisilicon.com>

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(-)
  

Comments

Will Deacon Oct. 24, 2023, 12:51 p.m. UTC | #1
On Tue, 24 Oct 2023 17:29:52 +0800, Yicong Yang wrote:
> From: Yicong Yang <yangyicong@hisilicon.com>
> 
> 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
> 
> [...]

Applied to will (for-next/perf), thanks!

[1/2] drivers/perf: hisi_pcie: Check the type first in pmu::event_init()
      https://git.kernel.org/will/c/6d7d51e88e21
[2/2] drivers/perf: hisi_pcie: Initialize event->cpu only on success
      https://git.kernel.org/will/c/868f8a709874

Cheers,