Commit 7da37705 authored by Junhao He's avatar Junhao He Committed by Will Deacon
Browse files

drivers/perf: hisi_pcie: Merge find_related_event() and get_event_idx()



The function xxx_find_related_event() scan all working events to find
related events. During this process, we also can find the idle counters.
If not found related events, return the first idle counter to simplify
the code.

Signed-off-by: default avatarJunhao He <hejunhao3@huawei.com>
Signed-off-by: default avatarYicong Yang <yangyicong@hisilicon.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240223103359.18669-8-yangyicong@huawei.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 2fbf96ed
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment